0
$\begingroup$

I am using Mathematica 11.3.0.0 on macOS 10.14.3. I found something goes crazy when I exported a plot with legends. In the notebook, everything seems fine

enter image description here

Then I used the export command to export it as a pdf. It becomes something like

enter image description here

Any idea how to fix this?

P.S. Here is the code

PTest2 = LogLogPlot[{Tanh[x], x}, {x, 10^-3, 10^3}, Frame -> True, FrameLabel -> {"x", "y"}, PlotLegends -> LineLegend[{"tanh(x)", "x"}]];
Export["plot_test_2.pdf", PTest2];
$\endgroup$
  • $\begingroup$ Welcome to Mathematica.SE! Please edit your post by clicking the gray edit button at the bottom of your post, and include typed-in Mathematica code, properly formatted in code blocks, instead of screen-shots. Also include all relevant code (including the Export command you used). This helps us help you. $\endgroup$ – march Feb 6 at 23:31
  • $\begingroup$ Unable to reproduce on 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) Mac OS version Mojave 10.14.2 $\endgroup$ – Rohit Namjoshi Feb 7 at 1:46
  • $\begingroup$ Also unable to reproduce on 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) Mojave 10.14.2. If you are on 10.14.3, are you in the macOS beta program? Is it possible it's a problem with the beta? $\endgroup$ – MassDefect Feb 7 at 2:46
  • $\begingroup$ I am also unable to reproduce the issue with version 11.3 on macOS 10.14.3 (which is not in beta status btw.). $\endgroup$ – Henrik Schumacher Feb 7 at 7:33
  • $\begingroup$ Thanks guys! Although I am still not sure about the cause, I have reset my Mathematica to its default and the problem is solved. $\endgroup$ – honeyclover Feb 7 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.