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

Home » Public Forums » archive » axis plotting
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
axis plotting [message #10385] Fri, 28 November 1997 00:00 Go to next message
williams is currently offline  williams
Messages: 7
Registered: March 1997
Junior Member
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
--
+---------------------------------------------------------+
| Daniel L. Williams | Email: williams@srl.caltech.edu |
| Space Radiation Lab | Tel: 626/395-6634 |
| Caltech 220-47 | Fax: 626/449-8676 |
| Pasadena, Ca 91125 | |
| WWW: www.srl.caltech.edu/personnel/williams.html |
+---------------------------------------------------------+
Re: axis plotting [message #10471 is a reply to message #10385] Mon, 01 December 1997 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
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.
>

[xyz] style values are bimary flags, so you can simply combine them by
adding them together. In your example this would be xstyle=9.


> 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
> --
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
186 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
IDL-homepage: http://www-as.harvard.edu/people/staff/mgs/idl/
------------------------------------------------------------ -------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Newbie seeks help drawing multiple surface volumes
Next Topic: Re: Map_set limits / position

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

Current Time: Sat Oct 11 02:09:35 PDT 2025

Total time taken to generate the page: 0.55760 seconds