comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » trivial problem: How do I change the axis scale in an image plot?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
trivial problem: How do I change the axis scale in an image plot? [message #82522] Tue, 18 December 2012 18:21
Balthasar Indermuehle is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: plot z vector on x-y plot
Next Topic: Re: trivial problem: How do I change the axis scale in an image plot?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:17:51 PDT 2025

Total time taken to generate the page: 0.01003 seconds