Re: axis plotting [message #10383] |
Fri, 28 November 1997 00:00 |
szoonem
Messages: 16 Registered: June 1995
|
Junior Member |
|
|
In article <65lqhk$nod@gap.cco.caltech.edu>,
williams@idunn.srl.caltech.edu (Daniel Williams) wrote:
> I want to plot data with only the lower x axis and the left y axis
> showing. This requires that I set xstyle=8 and ystyle =8. Pretty
> simple. But, I also want to strictly set the axis, e.g. to set
> xrange=[5,30] and yrange=[0,200]. This requires that xstyle=1 and
> ystyle=1.
>
> Since I can only set the style parameters to a single value, I can
> either have the plot draw left/lower axis, in which case IDL sets the
> ranges as it pleases, or I can set the ranges, in which case IDL makes
> more axes than I want to see. I could solve this with multiple plot
> and axis commands, but is there an easier, perhaps one-line way to do
> this?
>
> Cheers,
> Daniel Williams
You have to remember that when you set xstyle & ystyle values, you are
really setting the diffenent bits (0 - 4). So to make plot behave the way
you want it, you need set bits 0 and 3 simultaneously which is equivalent
to XSTYLE=9 and YSTYLE=9.
Cheers,
- Saeid
------------------------------------------------------------ -----
| Saeid Zoonematkermani | E-Mail: szoonem@astro.sunysb.edu |
| Dept. of Physics & Astronomy | Voice: (+1) (516) 632-8237 |
| State University of New York | Fax: (+1) (516) 632-8742 |
| Stony Brook, NY 11794-3800 | |
------------------------------------------------------------ -----
| Home Page --> http://ozone.ess.sunysb.edu/ |
------------------------------------------------------------ -----
|
|
|