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

Home » Public Forums » archive » Diplay 2D data
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: Diplay 2D data [message #57170 is a reply to message #57095] Tue, 04 December 2007 12:43 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
Hi,

I just want to point out that there exists an implementation in the
solarsoft library (which admittedly require the whole library
to be installed, as it calls many other routines) called spectro_plot,
which also allows for logarithmic axis (which I think is a nice
feature,
and not easy to implement from scratch). As an example, if you create
an image and axis with:

n=200
m=500
im=dist(n,m)
x=findgen(n)+10
y=findgen(m)+10

the plot resulting from

spectro_plot,im,x,y,xrange=[-100,300],yrange=[1,800],/ylog,/ no_ut,/
xstyle,/ystyle

is exactely what you would expect from a plot-compatible image
displayer such as the quick & dirty

contour,im,x,y,xrange=[-100,300],yrange=[1,800],/ylog,/xstyl e,/ystyle,/
fill,levels=indgen(256)/255.*max(im)

but faster and without the artifacts & smoothing from the contouring.
Mind the /no_ut keyword, though.

Cheers,
Paolo Grigis


Brian Larsen wrote:
>> I use Craig Markwardt's PLOTIMAGE (http://cow.physics.wisc.edu/~craigm/idl/graphics.html
>> ) which
>> mostly allows one to use the PLOT syntax for displaying images. It
>> allows the image range (e.g. IMGXRANGE) to be different from the plot
>> range (XRANGE), but I don't think it performs the zero padding you are
>> looking for. --Wayne
>
> Amazing what you learn when you read this newsgroup, I didn't know
> about that function. I will study it and see if I can improve imagesc
> in some way (or if I should just use plotimage)
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Off Topic UNIX Question
Next Topic: Build a dll within IDL

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

Current Time: Sat Oct 11 09:29:19 PDT 2025

Total time taken to generate the page: 0.88208 seconds