Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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 belisarius, Artes, rm -rf 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 –  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 –  belisarius Sep 23 '13 at 17:04
    
And don't forget to start your comments with @user. Otherwise the addressee will not be pinged –  belisarius Sep 23 '13 at 17:05

1 Answer 1

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}}];

Export[
  "Graph2.jpg",
  First@ImportString[ExportString[plot, "PDF"]],
  ImageResolution -> 300]

output

share|improve this answer

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