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

Home » Public Forums » archive » Questions about NG image with (log) axis
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: Questions about NG image with (log) axis [message #85547 is a reply to message #85544] Thu, 15 August 2013 10:52 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris Torrence writes:

> Well, I think both David's coyote library and IDL's NG are going to have problems with a log axis for an Image. When I try David's code (yes, I have it installed!) the axes "look" correct, but the image is just plotted as a normal image.

Yes, I'm not log scaling any image data. I presume the user knows how to
do that for himself! I think Paolo Grigis's routine pg_plotimage does
the logarithmic interpolation, though. You can find a version of his
code in the "public" directory of the Coyote Library distribution.

Here is an example from his documentation:

loadct,5
im=dist(128,128)
x=findgen(128)
y=findgen(128)
pg_plotimage,im,x,y,xrange=[5,100], $
yrange=[5,100],/xstyle,/ystyle,/xlog

That image definitely looks like the log of a dist function!

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
Read Message
Read Message
Read Message
Previous Topic: How to clear a NG window without erase method?
Next Topic: 'Reading' a file from binary data?

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

Current Time: Wed Oct 08 19:52:46 PDT 2025

Total time taken to generate the page: 0.00414 seconds