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 #51608 is a reply to message #51606] Mon, 04 December 2006 01:21 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
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

Brian Larsen wrote:
> Has anyone out there written a wrapper for tv that makes the output
> look like contour?
>
> By like contour I mean with axes, and in the center of the window,
> scalable zrange, log scales, ability to add a colorbar (using colorbar
> would work separately also so long as position works)
> Contour is great but it inherently smooths and takes forever, I don't
> want either.
>
> This would be a blocky version of
> IDL> contour, dist(100), /fill, nlevels=100
>
> but of course
> IDL> tvscl, dist(100)
> doesn't have any axes, is in the wrong place and all.
>
> This would be the equivalent then of imagesc() in matlab.
>
> Cheers,
>
> -Brian
>
[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: Sat Oct 11 11:53:44 PDT 2025

Total time taken to generate the page: 0.96162 seconds