Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gnuplot zoom

435 views
Skip to first unread message

Peter Olivius

unread,
Oct 26, 2001, 7:00:33 AM10/26/01
to
Hello!

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

I Wayan Warmada

unread,
Oct 26, 2001, 8:30:18 AM10/26/01
to

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.

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

Hans-Bernhard Broeker

unread,
Oct 26, 2001, 8:41:34 AM10/26/01
to
I Wayan Warmada <i.wayan...@tu-clausthal.de> wrote:

> 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.

Petr Mikulik

unread,
Oct 27, 2001, 3:40:05 AM10/27/01
to Peter Olivius
> Please, help me how to do zooms in gnuplot, if available.

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/


Brian Moore

unread,
Oct 28, 2001, 9:38:04 PM10/28/01
to
In article <9rbllu$m5i$1...@nets3.rz.RWTH-Aachen.DE>,

Hans-Bernhard Broeker <bro...@physik.rwth-aachen.de> wrote:
>I Wayan Warmada <i.wayan...@tu-clausthal.de> wrote:
>
>> On Fri, 26 Oct 2001, Peter Olivius wrote:
>
>>> Please, help me how to do zooms in gnuplot, if available.
....

>
>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 ;->
>


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

Petr Mikulik

unread,
Oct 29, 2001, 2:39:37 AM10/29/01
to bg...@psu.edu
> >>> Please, help me how to do zooms in gnuplot, if available.
> >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 ;->
> 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 :)

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'.

Brian Moore

unread,
Nov 1, 2001, 1:26:53 PM11/1/01
to
In article <Pine.LNX.4.21.011029...@monoceros.physics.muni.cz>,
Petr Mikulik <mik...@monoceros.physics.muni.cz> wrote:
....

>
>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?

Petr Mikulik

unread,
Nov 2, 2001, 2:37:20 AM11/2/01
to bg...@psu.edu
> >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?

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.

0 new messages