Re: Two zoom related questions and One script question



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
.



Relevant Pages

  • Re: Gnuplot 4.2: Animated GIFs
    ... I am a bit confused about the demo script at the Gnuplot site, ... out they call a separate file "gnuplot.rot". ... All of these demos are distributed with gnuplot, ... "Are you trying to make a plot like the one at URL? ...
    (comp.graphics.apps.gnuplot)
  • label_contours.awk: obsolete syntax, both in the script and on the homepage
    ... I'm trying to create plots where contour labels are placed next to the ... I've noticed that the script generates a gnuplot plot script ... My self-compiled gnuplot 4.3 croaks on the original version. ...
    (comp.graphics.apps.gnuplot)
  • Cant obtain Postscript output from Gnuplot 4.2
    ... The following script yields a complete Postscript file showing a ... simple plot when executed by Gnuplot 4.0 on Windows XP. ... But when I try the same script with Gnuplot 4.2, ...
    (comp.graphics.apps.gnuplot)
  • Re: Blank graph on no data
    ... I've set up a script to move around the parameter space ... of my data using arrow keys using `bind` and iteration within plots. ... gnuplot gives an error message and doesn't update ... update the plot anyway by drawing an empty plot with key entries? ...
    (comp.graphics.apps.gnuplot)
  • Re: zoom problem in x11
    ... gnuplot> plot 'points.txt' t '' w p ps 5 ... then when I drag with the right button, a box appears and makes zoom. ... This includes re-reading the data ...
    (comp.graphics.apps.gnuplot)