Mathematica, Wolfram Language, Plots, Latex.
an older TeX distribution on OS X, get a recent Ghostscript from Richard Koch’s page. I installed Ghostscript using Homebrew, thus in my case the code to run was ConfigureMaTeX[ "pdfLaTeX" -> "/Library/TeX/texbin/pdflatex", "Ghostscript" -> "/opt/homebrew/bin/gs" ] On Windows, download from