[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: REQ: alternative plot procedure?
- Subject: Re: REQ: alternative plot procedure?
- From: davidf(at)dfanning.com (David Fanning)
- Date: Tue, 15 Feb 2000 14:31:02 -0700
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <firstname.lastname@example.org>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:18436
Luis Alonso (email@example.com) writes:
> Is there avaible an alternative procedure to standard plot, in which one can
> zoom in, out, measure coordinates, scroll through the data...?
I just put a new example program named ZPLOT up on
my web page (although the pointers to it are still
being worked on). The purpose of the program is to
show users how to zoom into a line plot. Adding
scrolling or panning to the plot would be trivially easy.
No more than a half-hour's work, I imagine. The other
capabilities wouldn't be much harder. (I'd probably
zoom with the Left Button and pan with the Right
Anyway, it gives you a place to start:
The program takes all the positional and keyword parameters
accepted by the IDL PLOT command. It comes in its own
re-sizeable graphics window. To see it work, you can
just call it like this:
You click and drag a rubberband box to select the
region of the plot to zoom into. It currently zooms
only along the X axis, although it is easy enough to
zoom along either/or X and Y axes. Click and release
anywhere in the window to zoom back out.
P.S. Oh, it also demonstrates the intelligent
and device-decomposed-state-independent use of colors,
so you will also need to download my GetColor program:
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: firstname.lastname@example.org
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155