Bug introduced in 10.0.1 or 10.0.2 and fixed in 10.1.0
In version 10, if we plot with Sqrt in y-axis, and export to PDF, the square root disappears in the PDF file.
p = Plot[x, {x, 0, 1}, Frame -> True,
FrameLabel -> {"x", "\!\(\*SqrtBox[\(y\)]\)"}]

Export["test.pdf", p];

This does not happen in version 9.
Answer
Looks like a bug. Stupid workaround:
Export["t:\\test.pdf", ImportString@ExportString[p, "EPS"]]
At the very least, there's a good chance that this would output reasonable vector graphics.
Or,
p = Plot[x, {x, 0, 1}, Frame -> True, FrameLabel -> {x, Sqrt[y]}]
The latter is what I usually do, anyway.
Comments
Post a Comment