I am using both Mathematica 9.0 and 10.0. I found that when I save the following plot

a = Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> {True, True, True, True}, 
  FrameLabel -> {"\[CapitalDelta]t", 
    Rotate["(\[CapitalDelta]X\!\(\*SubscriptBox[SuperscriptBox[\()\), \
\(2\)], \(AC\)]\)", 0 Degree]}, ImageSize -> 250]

in version 9.0 it takes around 1800 kb, while as in version 10.0 it is saved in just 22 kb. The problem is that the FrameLable along y-axis which is $(\Delta X)^2$ gets distorted in version 10.0. In version 9.0 it does not get distorted, but when I save it in 9.0, it takes more space around 1800 kbs.

I save the plot using following Export[NotebookDirectory[] <> "sample.pdf", a]


closed as off-topic by Szabolcs, MarcoB, LCarvalho, Edmund, gwr Oct 11 '17 at 17:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – Szabolcs, MarcoB, LCarvalho, Edmund, gwr
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ Are you sure that the graphics is saved in the same format? Try Export["test.jpg",a] and compare the results for both, mma9.0 and mma10.0. $\endgroup$ – ercegovac Oct 8 '17 at 11:16
  • 1
    $\begingroup$ How are you saving the plot? Please provide the saving code. $\endgroup$ – Edmund Oct 8 '17 at 11:16
  • $\begingroup$ @Szabolcs Could you update tag usage description for Save tag. $\endgroup$ – ercegovac Oct 8 '17 at 11:28
  • $\begingroup$ @ercegovac I don't even know why we have that tag. It seems redundant. $\endgroup$ – Szabolcs Oct 8 '17 at 11:29
  • $\begingroup$ @Szabolcs I agree. Also there are not many questions associated and can be easily removed completely. $\endgroup$ – ercegovac Oct 8 '17 at 11:30

AFAICR, in version 10.0 the fonts aren't embedded in the pdf file. That's the reason for the difference in filesize and, most probably, the reason for distorted font letter. Version 9 embeds fonts, but doesn't subsample them, hence the filesize is large. You should upgrade to more recent version which correctly embeds subsampled fonts into PDF. Alternatively you can use a PDF optimizer, for example Acrobat can do it (and the resulting filesize will be almost certainly smaller than recent Mathematica is able to produce).


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