Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I've found a simple example that illustrates my problem:

ContourPlot[x^2 - 1 == y, {x, -1, 1}, {y, -1, 1}, PlotLegends -> "Expressions"]

When I try to export this to PDF, I get the following:

Contour plot with legend and bug

and in the legend, the expression is misspaced and unreadable. Is this a known bug? Is there a known work around?

share|improve this question
it worked for me. no problems. – Nasser Nov 20 '13 at 20:17
What platform/version are you on? Works fine for me on Mac OS X Mathematica version 9.0.1. – cormullion Nov 20 '13 at 20:17
Linux, mathematica 9.0.1 – garrett mitchener Nov 20 '13 at 22:30
I could reproduce this on Linux, M9.0.1, but not on OS X. You should probably report the problem to support at – Szabolcs Nov 21 '13 at 1:05
On 10.1 and 10.3, I don't get any legend at all for this. I'll post a more considered answer this evening, if I get time. – Verbeia Oct 28 at 6:36

1 Answer 1

Funnily enough, when I tried this in version 10 (10.1 and the recently released 10.3), the legend didn't show at all. But in version 9 it does, and I assume that is what you were using given the timing of your question and the format of the graphic you posted.

I have not been able to replicate your problem in either Windows or Mac versions of Mathematica 9.0x. But I suspect that the issue was related to font embedding and substitution. Try the following code to remove the Mathematica custom fonts from the PDF, and use the normal text font for minus and equals signs.

 PrivateFontOptions -> {"OperatorSubstitution" -> False}]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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