Re: Perspective view of a 2-d plot [message #36458 is a reply to message #36369] |
Wed, 17 September 2003 09:19   |
Clay Blankenship
Messages: 4 Registered: September 2003
|
Junior Member |
|
|
David Fanning wrote:
> Clay Blankenship writes:
>
>> I'm sure there must be a way to do this in IDL but I don't know what it
>> is. I want to do 4 stacked 2-d plots using MAP_SET and PLOTS, looking
>> something like this:
>> ___________
>> / /
>> /__________/
>> ___________
>> / /
>> /__________/
>> ___________
>> / /
>> /__________/
>> ___________
>> / /
>> /__________/
>>
>> I want to make specific humidity plots at 4 different levels in the
>> atmosphere. I already do these individually but want to try visualizing
>> them this way.
>
> I can't really tell what you are looking for
> here. If you just want four plots in the window,
> setting !P.MULTI is the way to go:
>
Thanks for the reply. I should have been more explicit in saying I am
trying to do a perspective view of 4 parallel planes from somewhere
above and off to the side. I figured out a way to do it using the t3d
command and keyword.
for lev=1,4 do begin
z=.25*(lev-1)
xoff=.15-.05*lev
t3d,/reset,rot=[-65,20,0],translate=[xoff,0,z]
map_set,latcen,loncen,/cyl,/grid,/cont,$
limit=[lat1,lon1,lat2,lon2], $
/label,latlab=lon2-2,lonlab=lat2-2,$
position=p,/noerase,/t3d
endfor
I had to fiddle with the z offset to get them to line up vertically since I
couldn't figure out the right rotation to use.
I also got a reply from Jim Pendleton of RSI explaining how to do it using
Direct Graphics and Object Graphics.
Clay
--
Clay Blankenship Change 'Z' to 's' to reply
Naval Research Laboratory
Monterey, CA
|
|
|