Here is the minimal working example that gives me problems with Mathematica 10.4 on OSX

Labeled[LogLogPlot[x, {x, 10^-5, 1}], "Test"]
Export["test.pdf", %]
Export["test.png", %%]

In the PDF output, there is a mismatch in the alignment of the ticks labels of the x axis with a superscript 10^-5 and 10^-4 compared to the other labels.

If I export only the plot, without using Labeled, the PDF is correct.

Here is the (correct) PNG image


Here is the PDF with misplaced ticks labels


Can anybody reproduce it? Any possible workaround?

  • $\begingroup$ I am not sure that I understand the problem as I do not see any misalignment. There is a difference in the plots in size and that is probably why you have 10^-5 on the vertical axis in the bottom plot but otherwise I cannot see any difference. $\endgroup$ – leosenko Mar 31 '16 at 13:45
  • $\begingroup$ @leosenko sorry, I'll edit the question to make the point clearer. The misalignment is in the x axis labels. Notice that the two labels with the exponent are higher than the others in the PDF. $\endgroup$ – Pincopallino Mar 31 '16 at 13:51
  • $\begingroup$ I can see it now. I can reproduce it as well in Mathematica 10.0.2. $\endgroup$ – leosenko Mar 31 '16 at 13:58
  • $\begingroup$ It does work correctly on Windows 10 - Mathematica 10.4. $\endgroup$ – gwr Mar 31 '16 at 14:28
  • $\begingroup$ possibly related mathematica.stackexchange.com/questions/47711/… $\endgroup$ – yarchik Mar 31 '16 at 18:54

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.