Re: log scale colorbar in IDL 8.0 [message #76061] |
Thu, 19 May 2011 08:29  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
On May 18, 10:54 pm, David Fanning <n...@idlcoyote.com> wrote:
> Paolo writes:
>> but I was worried that in the CG era people may shun
>> older-fashioned programs that do not have those fancy
>> features like automatic resizing etc.
>
>> The trick is to choose a good interpolation scheme
>> for the pixel values - the one I have in my
>> http://hea-www.cfa.harvard.edu/~pgrigis/idl_stuff/pg_plotima ge.pro
>> may not be suitable for all uses though.
>
> I made a Coyote Graphics command out of your pg_plotimage
> program. You can find it here:
>
> http://www.idlcoyote.com/misc/pg_plotimage.pro
>
> It took about a half hour. You can run your example
> program and display the output in a resizeable
> cgWindow like this:
>
> 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,/window
>
Ah, very cool! The power of the coyote graphics is strong with you! :)
By the way do feel free to use my code for any purpose whatsoever -
it's
in the public domain.
The problem I personally have with cg (and this is entirely the fault
of the way IDL manages namespace) is that it can't be run within
solarsoft,
since solarsoft did seem fit to steal some coyote routines (without
renaming
them) so now I have several mutually incompatible version of some
coyote
routines...
Ciao,
Paolo
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|