Re: Perspective view of a 2-d plot [message #36464 is a reply to message #36369] |
Wed, 17 September 2003 06:44  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
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:
!P.MULTI=[0,1,4]
Map_Set, ...
Oplot,...
Map_Set, /Advance ...
Oplot,...
Map_Set, /Advance ...
Oplot,...
Map_Set, /Advance ...
Oplot,...
!P.MULTI=0
If you want "stacked" plots, so that the upper border of
the lower plot is the lower border of the upper plot,
then you are going to have to become proficient in the
use of keywords. Here are a few you are going to have
to know how to use for sure: POSITION, NOERASE, and [XY]STYLE.
You are probably also going to have to know a trick for turning
off axis annotation occasionally. I use XTICKFORMAT='(A1)'.
Here is an example of a "stacked" plot, although it doesn't
use MAP_SET, which might introduce its own complications. :-)
http://www.dfanning.com/graphics_tips/ladder_plot.html
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|