Message Boards Message Boards

0
|
3968 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Framelabel doesn't render correctly when exporting as a PDF

Posted 3 years ago

When using \Micro in a figure frame label, it doesn't display properly when saved as a PDF.

Details:

  • I'm using Mathematica 10.0.0.0 on Windows 10

  • This renders correctly in the notebook and when saving as a PNG

  • Simple example below:

    SetOptions[ListPlot, Joined -> False, PlotMarkers -> Automatic, 
      Frame -> True, Axes -> False, PlotRange -> All, ImageSize -> Medium,
       FrameStyle -> Black, 
      BaseStyle -> {FontFamily -> "Helvetica", FontSize -> 16}]; 
    SetDirectory[NotebookDirectory[]];
    pl1 = ListPlot[{{2, 2}, {4, 2}, {7, 3}, {15, 1}}, 
      FrameLabel -> {"X (\[Micro]m)", "Y (\[Micro]m)"}, PlotStyle -> Blue]
    Export["pdfout.pdf", pl1]
    Export["pdfout.png", pl1]

The correct output:
correct output

The broken output (pdf screenshot):
enter image description here

Can you tell me how I might fix this vertical text rendering when exporting as a PDF?

Thanks!

POSTED BY: pk pk
4 Replies

Did you try printing as a PDF instead of saving or exporting as a PDF.

POSTED BY: John Baxter
Posted 3 years ago

I give up, I'll just edit it in post

POSTED BY: pk pk
Posted 3 years ago

Unfortunately, \mu also has the same problem

POSTED BY: pk pk

Hi pk pk,

I'm using Mathematica 10.0.0.0 on Windows 10

I guess one of the versions 10 (Mathematica or Win) has a problem here. On my system ("12.2.0 for Linux x86 (64-bit) (December 12, 2020)") it works perfectly! Maybe (an odd-looking) workaround is to use \[Mu] instead of \[Micro].

POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract