I am trying to export a log-plot to a pdf-file but the logarithmic axis ticks are broken when exporting from my default kernel local. The exported pdf is as expected when setting the notebook kernel to a secondary kernel secondary.

A minimal example is: Evaluation->Notebook's Kernel->local

data = {#, # RandomReal[{.9, 1.1}, 30] // Exp}\[Transpose] &@(
plot = ListLogPlot[data];  
Export["~/Desktop/logPlotLoc.pdf", Show[plot, ImageSize -> 250]];

Then change kernel: Evaluation->Notebook's Kernel->secondary

data = {#, # RandomReal[{.9, 1.1}, 30] // Exp}\[Transpose] &@(
plot = ListLogPlot[data];  
Export["~/Desktop/logPlotSec.pdf", Show[plot, ImageSize -> 250]];

The unexpected result is:Exported from <code>local</code>

Exported from <code>secondary</code>

Both kernels were newly started. How is this possible and can I prevent it somehow?

I am using Mathematica on a Mac.

  • $\begingroup$ Please do not use the bugs tag unless the bug is confirmed by this community. $\endgroup$ – gwr Jan 21 '19 at 18:20
  • $\begingroup$ I cannot reproduce this issue using Mathematica 11.3.0 on Windows 10 (64-Bit). $\endgroup$ – gwr Jan 21 '19 at 18:27
  • $\begingroup$ @gwr 1) Okay. 2) It came from the ancient past of the code and has been sent back there, sorry. 3) Thank you for trying! The mystery remains... $\endgroup$ – Stalpotaten Jan 21 '19 at 20:21
  • $\begingroup$ @Stalpotaten and these kernels are truly identical? I'm skeptical of that. Can you do the same test, but run $Version instead of your plots, perhaps? I cannot reproduce this from 11.3 on macOS 10.14. $\endgroup$ – ktm Jan 22 '19 at 2:16
  • $\begingroup$ Is the plot itself correct, and only the ticks are incorrect on export? $\endgroup$ – ktm Jan 22 '19 at 2:17

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.