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

Home » Public Forums » archive » Re: Help Creating several Plots on the same pag
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Help Creating several Plots on the same pag [message #11229] Fri, 06 March 1998 00:00
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
In article 523641F@fl.ensco.com, Jeff <jeffe@fl.ensco.com> writes:
> I have a grid of data for each of the rooms, how do I get IDL to
> draw my contours in each of the classrooms.
> I've looked at !P.multi but my rooms are not laid out in
> perfect row, column sizes.
>
> Is there a way to map windows(or drawing areas) to the same coordinates
> used by POLYFILL in the procedure below?
>
> ; fill the entire room with a given color value
> pro fillRooms, ROOMDATA, Xmax, Xmin
>
> room1X = [0, 10, 10, 0]
> room1Y = [24, 24, 14, 14]
> POLYFILL, room1X, room1Y, COLOR = myConcColor(roomdata[1],Xmin,Xmax)

!p.region is what you want.
You should be able to say...
xy1=convert_coord(room1x(0),room1y(0),/data,/to_norm)
xy2=...ditto the other corner...
!p.region=[xy1(0),xy1(1),xy2(0),xy2(1)]
contour,xmarg=0,ymarg=0,data,x,y
(I guess you need to set xstyle and ystyle in contour to suppress axes)

- William

---
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Wanted: colour table good for high contrast grayscale output
Next Topic: associated variables in structures

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

Current Time: Fri Oct 10 21:33:42 PDT 2025

Total time taken to generate the page: 1.35638 seconds