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

Home » Public Forums » archive » Re: tv with axes routine
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: tv with axes routine [message #51606] Mon, 04 December 2006 07:40 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
spectro_plot is a good routine but seems to have a touch of odd
behavior (I didn't know about this routine before)

odd behavior:
;; setup some data
dat = dist(100)
;; x is just 1:100
x = findgen(100)
y = findgen(100)
;; y has a datagap at 49 by 100
y[50:*] += 100
spectro_plot, dat, x, y, /no_ut
END

I would expect the plot to have a 100 unit gap in y but instead I get
oddness.

Have a look,

Cheers,

Brian



Paolo Grigis wrote:
> The solution proposed are useful, but actually sometimes you want
> a behaviour similar to contour even for *not-uniformely* spaced
> data, such that you specify an image z and two axis vectors
> x and y with the coordinates of each horizontal and vertical
> channel. In solarsoft, the routine "spectro_plot" will do that
> for you.
>
> Example:
>
> ;create some data
> nx=800
> ny=600
>
> ;image
> im=dist(nx,ny)
>
> ;log scaled axis
> x=10.^(findgen(nx)/(nx-1)*2)
> y=10.^(findgen(ny)/(ny-1)*2+1)
>
> ;pick color table
> loadct,5
>
> ;linear color scale
> spectro_plot,im,x,y,/xlog,/ylog,/xstyle,/ystyle,/no_ut
>
> ;logarithmic color scale
> spectro_plot,im,x,y,/xlog,/ylog,/zlog,/xstyle,/ystyle,/no_ut
>
> ;linear axis & color
> spectro_plot,im,x,y,/xstyle,/ystyle,/no_ut
>
> Ciao,
> Paolo
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: objects, crashes, and negative memory oh my
Next Topic: Can I Pass an object to IDL_IDLBridge session?

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

Current Time: Fri Oct 10 19:50:41 PDT 2025

Total time taken to generate the page: 0.63888 seconds