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

Home » Public Forums » archive » Re: 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 
Return to the default flat view Create a new topic Submit Reply
Re: trivial problem: How do I change the axis scale in an image plot? [message #82521 is a reply to message #82520] Tue, 18 December 2012 19:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Balthasar Indermuehle writes:

> 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?

I'd try this tick formatting function:

FUNCTION DoSeconds, axis, index, number
Return, String(number/60., Format='(F7.1)')
END

And set your YTickFormat keyword to it:

cgImage, ..., YTICKFORMAT='DoSeconds'

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: trivial problem: How do I change the axis scale in an image plot?
Next Topic: Read PDF on a Mac

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

Current Time: Sun Nov 30 03:29:35 PST 2025

Total time taken to generate the page: 1.52693 seconds