Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I've produced some plots that have fractional tick labels on the horizontal axis and they look fine.

Plot[Sin[x], {x, 0, 2 Pi}, 
 Ticks -> {Range[0, 2 Pi, Pi/6], {-1, 0, 1}}]

enter image description here

However, when I export the plot with

Export["Graph2.jpg",drag graph picture here, ImageResolution->300] 

the fraction alignment goes off.

enter image description here

Is there a way to keep the fraction alignment the same in a jpg?

share|improve this question

marked as duplicate by Dr. belisarius, Artes, R. M. Sep 23 '13 at 18:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

What version are you using and how do you export? Export["test.jpg", plot] looks normal for me with v8.0.4 linux – ssch Sep 23 '13 at 16:51
Also looks good with V9.01 on Win – Dr. belisarius Sep 23 '13 at 17:01
I'm using Windows 7 and the command I've used is Export["Graph2.jpg",drag graph picture here, ImageResolution->300] – keystonethewizard Sep 23 '13 at 17:01
@keystonethewizard Yup, your output is the same here. Try ssch's command – Dr. belisarius Sep 23 '13 at 17:04
And don't forget to start your comments with @user. Otherwise the addressee will not be pinged – Dr. belisarius Sep 23 '13 at 17:05
up vote 2 down vote accepted

Adapting this answer for Export instead of Rasterize:

plot = Plot[Sin[x], {x, 0, 2 Pi}, Ticks -> {Range[0, 2 Pi, Pi/6], {-1, 0, 1}}];

  First@ImportString[ExportString[plot, "PDF"]],
  ImageResolution -> 300]


share|improve this answer

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