2

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?

Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453

1 Answers1

3

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

ssch
  • 16,590
  • 2
  • 53
  • 88