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

Home » Public Forums » archive » Using !P.Multi for TVSCL,CONGRID
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Using !P.Multi for TVSCL,CONGRID [message #41552] Thu, 18 November 2004 01:05 Go to previous message
Ertel, KG (Klaus) is currently offline  Ertel, KG (Klaus)
Messages: 3
Registered: November 2004
Junior Member
Hello!

My solution would be to create a plot (using PLOT or CONTOUR) and then
place the colormap into it. I think this is also explained somewhere in
the IDL manuals. This way you also have axes around your plot. Example:

CONTOUR, data, x, y, XSTYLE = 1, YSTYLE = 1, /NODATA

PX = !X.WINDOW * !D.X_VSIZE
PY = !Y.WINDOW * !D.Y_VSIZE
SX = PX[1] - PX[0] + 1
SY = PY[1] - PY[0] + 1

if !D.NAME eq 'PS' then begin

tvscl, data, px[0], py[0], xsize = sx ,ysize = sy

endif else begin

tvscl, congrid(data,SX,SY),PX[0],PY[0]

endelse

Note the difference between PS output where you have scalable pixels and
other devices where you scale the number of pixels. Besides, I wouldn't
use !P.Multi but the POSITION keyword to place your plots (with /NOERASE
for the second and subsequent plots on the page). This gives you much
better control over the positioning of the plots. Hope this helps...

Klaus


-----Original Message-----
From: roberson_1@yahoo.com (Roy) [mailto:roberson_1@yahoo.com]
Posted At: 10 November 2004 01:42
Posted To: comp.lang.idl-pvwave
Conversation: Using !P.Multi for TVSCL,CONGRID
Subject: Using !P.Multi for TVSCL,CONGRID


Is there a way to use !P.Multi plot using
TVSCL,CONGRID(data,400,400)?
I know !P.Multi works for other plot commands but I'm not able to use
congrid on !P.Multi.

Thanks,
Lee
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: problems fetching data via the internet (socket)
Next Topic: Re: using idl over the web

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

Current Time: Fri Dec 05 21:03:13 PST 2025

Total time taken to generate the page: 1.52404 seconds