I encountered an issue with Export when exporting to .pdf a graphic similar to

Plot[Sin[x], {x, 0, 6 Pi}, Frame -> True]
Export["someFile.pdf", %]

Visualization in the frondend is normal but in the exported .pdf the frame ticks are missing.

enter image description here

I am on OS X 10.11.6 and using Mathematica Any other plot function I tried (such as ListPlot) and other formats but with the expression from above (e.g. .png) work fine.

  • 1
    $\begingroup$ no problem on Windows 10 and Linux. $\endgroup$ – Rolf Mertig Jun 14 '17 at 8:32
  • 2
    $\begingroup$ If you add FrameTicks->True it will also work on MacOSX. $\endgroup$ – Rolf Mertig Jun 14 '17 at 8:36
  • $\begingroup$ The same in Linux (Ubuntu 17.10) with Mathematica $\endgroup$ – Darko Veberic Nov 3 '17 at 16:10
  • 2
    $\begingroup$ I also observe the same problem. Windows 10 with Mathematica The problem is not persistent as it only shows up for certain plots. I have yet to find the pattern that triggers the problem yet. $\endgroup$ – Boson Bear Mar 14 '18 at 17:48
  • $\begingroup$ same problem for Ubuntu 17.10 with Mathematica 10.0 ;( $\endgroup$ – Meg90 May 16 '18 at 16:06

IMHO It should be marked as a bug. For example the following gives a bug:

g = Framed@Plot[Sin[x], {x, -3, 3}, Frame -> True, 
   FrameTicks -> {Automatic, Automatic}]
Export["test.pdf", g]

frame ticks missing

Only workaround I found was to set the tick labels explicitly:

g = Framed@
  Plot[Sin[x], {x, -3, 3}, Frame -> True, 
   FrameTicks -> {Range[-1, 1, 1], Range[-1, 1, 0.25]}]

frame ticks present

Problem is present on: "11.3.0 for Microsoft Windows (64-bit) (March 7, 2018)"

Problem is not there on: "11.1.1 for Microsoft Windows (64-bit) (April 18, 2017)"

Sometimes if I change something it works once properly but if I export the same object again it no longer works until I change something again.

Bugreport filled.


I have real trouble reporducing the error with minimal notebooks. It keeps happening with complicated figures reproducably. Meanwhile I figured out, that it already helps, if you wrap with Show[#,FrameTicks->Automatic]&.

  • $\begingroup$ I was able to make ticks show with just FrameTicks->Automatic as you mention. This way you don't need to calculate explicit values for them. $\endgroup$ – A. Vieira Jan 22 '19 at 13:16
  • 1
    $\begingroup$ I just found that by explicitly assign the format "PDF" to Export the ticks won't disappear in MMA 11.3. Don't know if that's a general solution. $\endgroup$ – Turgon May 9 '19 at 14:25

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.