Please, help me how to do zooms in gnuplot, if available.
I am thinking of the zoom command in matlab.
Point and drag with mouse to zoom in a rectangular area would be great!
Thanks
Peter
--
M.Sc. Peter Olivius
Division of Mathematical Physics, Lund Institute of Technology at
Lund University, Box 118, SE-221 00 Lund, SWEDEN
email: Peter....@matfys.lth.se fax: +46 46 - 222 44 16
> Please, help me how to do zooms in gnuplot, if available.
> I am thinking of the zoom command in matlab.
> Point and drag with mouse to zoom in a rectangular area would be great!
You can do with a little trick... There is no point and drag with mouse in
gnuplot (as I know), because gnuplot is pure commandline driven program.
Let try the following way:
1. set in multiplot mode... --> set multiplot
2. set the original position of graph (base graph), if you want to make
an inset (of zoomed range).
3. set the position and size of zoom.
4. do a plot
example:
set multiplot
set size 1,1 # size of base graph (original graph)
set origin 0,0
set xrange [--:--]
set yrange [--:--]
plot "data" with lines
# the following commands are to make an
# inset of the graph above
set size .5,.5 # try to get the best result by
# modifying this values
set origin .2,.5 # as above
set xrange [--:--]
set yrange [--:--] # the range that you decide to zoom
plot "data" with lines
I hope that is possible to work...
Wayan
> On Fri, 26 Oct 2001, Peter Olivius wrote:
>> Please, help me how to do zooms in gnuplot, if available.
>> I am thinking of the zoom command in matlab.
>> Point and drag with mouse to zoom in a rectangular area would be great!
> You can do with a little trick... There is no point and drag with mouse in
> gnuplot (as I know), because gnuplot is pure commandline driven program.
To make all your mouths water a bit: this feature is coming as a new
feature for the next version. Only open question is when that may be
released ;->
--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
The OS/2 PM terminal is mouse-capable since March 1998 (see my webpage), and
we have been running mouseable X11 terminal since October 1999, Windows
since February 2001. You should get+compile the development version of
gnuplot from SourceForge.
> I am thinking of the zoom command in matlab.
> Point and drag with mouse to zoom in a rectangular area would be great!
It works perfectly well from within Octave too. Don't forget to put
gset mouse
into your .octaverc.
*** Petr Mikulik, mik...@physics.muni.cz
*** Laboratory of Thin Films and Nanostructures
*** Masaryk University, Brno, Czech Republic
*** http://www.sci.muni.cz/~mikulik/
Glad to hear it. I used to use xgraph, back around '89-90 and
the mouse zoom is one thing I miss in gnuplot. I can remember
that the version of xgraph I used to use allowed something like
7 layers of zooming :)
--
Brian G. Moore, School of Science, Penn State Erie--The Behrend College
bg...@psu.edu , (814)-898-6334
Gnuplot zooming has no limit on zoom history. You can browse this history
in the graphics window with hotkeys 'p', 'n' and 'u'. Use 'h' for help.
There are hotkeys for setting grid on/off, log axes, put on a ruler, measure
the distance or ratio between the mouse position and the ruler (cartesian or
polar coordinates) - great for peak analysis and measuring of angles, and
much more. The development version of gnuplot is really great :-))
See 'help mouse' and 'help bind'.
Peter, thanks. I looked at your web page and the mouse enhancements
and the pm3d stuff looks really fantastic.
Now...
Can someone give me a few clues as to how do download the right development
version that will do the mouse zoom? I've wandered around the
gnuplot SourceForge
site and it seems a blizzard of files, some obviously quite recent some
much older. Is there one particular stable devel. version that one
should be downloading?
The necessary commands are given at the end of my gnuplot page:
http://www.sci.muni.cz/~mikulik/gnuplot.html#cvsdownload
It requires the "cvs" program, which is available for every OS.