0

When I export a Plot in Mathematica as a PDF characters in PlotLegends and AxesLabels get replaced by other characters.

My code:

plot = Plot[x, {x, 0, 1}, PlotLegends -> {"T = 1"}, AxesLabel -> {"p / GeV", "M in GeV^-1 "}]

Export["/home/test.pdf", plot, "PDF"]

Export["/home/test2.png", plot, "PNG"]

This code gives me wrong characters in the pdf file, and right ones in the png file (the "=", "-", "/" are wrong). The Plot when I export it as a pdf. Note: I can not place pdf here, so I used an online pdf to png converter here

The Plot when I export it as a png.

VersionNumber: 13.1 on Linux

Michael E2
  • 235,386
  • 17
  • 334
  • 747

0 Answers0