trivial problem: How do I change the axis scale in an image plot? [message #82522] |
Tue, 18 December 2012 18:21 |
Balthasar Indermuehle
Messages: 22 Registered: August 2012
|
Junior Member |
|
|
I'm having an off day... I have an image that's plotted using the cgIMAGE function. The Yscale is in seconds, and in log space. That all works beautifully, except I'd like it to be in minutes, not seconds... surely there's a simple way to replace the original Y axis labels with ones that are divided by 60?
Here's the the call:
cgIMAGE, histWavePower, PALETTE=palette, POSITION=[0.11, 0.1, 0.9, 0.9], $
TITLE="Wavelet transform: " + datadesc, XTITLE="Time [UT]", YTITLE="Period [s]", $
XRANGE=[xtime[0],xtime[N_ELEMENTS(xtime)-1]], $
YRANGE=[(samplingInterval*2.0),scale[N_ELEMENTS(scale)-1]], $
AXKEYWORDS={TICKLEN: -0.015, YLOG: 1, YMINOR: 9, YTICKS: nticks-1, $
YTICKFORMAT:'(F7.1)', XTICKFORMAT:'LABEL_DATE', XTICKINTERVAL: 1/24.0 }, $
MARGIN=0.5, /AXES, CHARSIZE=1
Cheers
- Balt
|
|
|