Re: Two zoom related questions and One script question
- From: merritt@xxxxxxxxxxxxxxxx (Ethan Merritt)
- Date: Sun, 8 Apr 2007 11:19:44 -0700 (PDT)
In article <1176053493.066919.123020@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Olumide <50295@xxxxxx> wrote:
Hello gnuplotters :-)
I'm using a gnuplot script to plot some data, with the "set terminal
x11 persist" option, which is great. Only problem now is that I cant
zoom :( . Is there a way round this? I's there a way of zooming with
x11 persist option enabled?
As currently implemented, the zoom command re-reads the original data
and re-draws the plot with new bounds. Once the main gnuplot program
has exited, this is no longer possible. So after assigning
'set term x11 persist' you can zoom, but only so long as gnuplot
itself is still active.
Also in a normal plot mode, after zooming in on a plot, I'd like to be
able to zoom out? Currently, I'm resorting to closing the graph and
replotting it ...
Hot-key "p" in the x11 window will return to the previous zoom level,
hot-key "u" will return to the original un-zoomed setting.
For a list of all currently defined hot keys, type "h" in the
plot window.
The wxt terminal additionally has a zoom/unzoom icon in the toolbar
at the top of the plot window.
Third, is there a way of putting all the data to be plotted in a the
script file.
Certainly. This is called "in line data", and is signalled by
the artificial filename "-". Many of the demos do this.
However, if you do this you won't be able to zoom using the
hard-coded zoom keys because the data cannot be re-read.
Nevertheless, it would be possible to re-define zoom to work
via interactive definition of new plot boundaries followed by
a "reread" command that would reexecute the entire script
containing the in-line data. This is a little bit tricky, but
the demo "mousevariables.dem" may be a useful starting point.
--
Ethan A Merritt
.
- Prev by Date: Re: How to disable the color value bar in the result of view map?
- Next by Date: Re: Time as Variable?
- Previous by thread: How to disable the color value bar in the result of view map?
- Next by thread: 3D contour plot problem using pm3d
- Index(es):
Relevant Pages
|