Re: Help Creating several Plots on the same pag [message #11229] |
Fri, 06 March 1998 00:00 |
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
|
|
|