Steve

2017-12-19 09:47:15 UTC

Hi

I am having an issue with saving a png file from a plot with Julian days on the x-axis (IDL 8.2). A very simple example is below

p=PLOT([0,1],[0,1],XRANGE=[5,28],/NODATA,DIMENSIONS=[1400,400])

p.SAVE,'test.png'

The above works ok - xrange has small numbers

p=PLOT([0,1],[0,1],XRANGE=[2457981.5,2458004.5],/NODATA,DIMENSIONS=[1400,400])

p.SAVE,'test2.png'

The above doesn't work where xrange now has example Julian days (larger numbers). The png file does not display the axes properly. I have tried playing around with the resolution keywords but this does not seem to help.

Any ideas?

Cheers

Steve

I am having an issue with saving a png file from a plot with Julian days on the x-axis (IDL 8.2). A very simple example is below

p=PLOT([0,1],[0,1],XRANGE=[5,28],/NODATA,DIMENSIONS=[1400,400])

p.SAVE,'test.png'

The above works ok - xrange has small numbers

p=PLOT([0,1],[0,1],XRANGE=[2457981.5,2458004.5],/NODATA,DIMENSIONS=[1400,400])

p.SAVE,'test2.png'

The above doesn't work where xrange now has example Julian days (larger numbers). The png file does not display the axes properly. I have tried playing around with the resolution keywords but this does not seem to help.

Any ideas?

Cheers

Steve