automatic way of setting origin/size in multiplots?

automatic way of setting origin/size in multiplots?

Post by Stephen Egl » Tue, 25 Jun 1996 04:00:00



Hi,
Is there a way to automatically set the origin and sizes for doing
multiplots in gnuplot?  For example, if I want to do plot four graphs
all within the same xwindow, can I do it by saying

mplot 'filea', fileb', 'filec', 'filed'
and then these four plots come up something like:

        ---------        ---------
        |       |        |       |
        |   A   |        |   B   |
        |       |        |       |
        ---------        ---------

        ---------        ---------
        |       |        |       |
        |   C   |        |   D   |
        |       |        |       |
        ---------        ---------

in the one X window (ie. all same size and equally spaced in the
window)?

If there isnt an easy way of automatically doing this already in
gnuplot, I am thinking of writing a script to do this, which will then
call gplot (the command line interface to gnuplot) to do this.

(I have version 3.5 beta 248)

Cheers, Stephen

 
 
 

automatic way of setting origin/size in multiplots?

Post by David Denho » Tue, 25 Jun 1996 04:00:00



> Hi,
> Is there a way to automatically set the origin and sizes for doing
> multiplots in gnuplot?  For example, if I want to do plot four graphs
> all within the same xwindow, can I do it by saying
> mplot 'filea', fileb', 'filec', 'filed'
> and then these four plots come up something like:
>    ---------        ---------
>    |       |        |       |
>    |   A   |        |   B   |
>    |       |        |       |
>    ---------        ---------
>    ---------        ---------
>    |       |        |       |
>    |   C   |        |   D   |
>    |       |        |       |
>    ---------        ---------
> in the one X window (ie. all same size and equally spaced in the
> window)?

best bet, I think, would be to make youself a callable gnuplot file
mplot, which does all the set size / set origin stuff, and then just

gnuplot>  call 'mplot' 'file1' 'file2' ...

dd
--

Tel (01494) 453376 (work)    (01494) 459742  (home)