strange sizes in multiplot

strange sizes in multiplot

Post by Stefan Schwarze » Wed, 23 Aug 2000 04:00:00



Hi!

I ran across an oddity when I wanted to combine some very similar plots on one
page. The issue is that the size of a plot within the bracket set by
'set multiplot' and 'set nomultiplot' depends on the position of the plot
as controlled by 'set origin'. I have found this behavior both for the
x11 and the postscript terminal in eps mode. I did not check other
terminal types.

The following simplified script illustrates the problem.
I use identical plot commands and sizes for 4 plots and I'd expect these
plots to all have the same size. However, in the example, the two plots on
the left hand side differ in size. The difference vanishes, when
the y position of the plot exceeds 1/2. Is there an explanation for
this interaction between 'set origin' and 'set size' or is this a bug?

Whatever the answer: I like gnuplot a lot and couldn't work without it!
Thanks -

Stefan.

--
Stefan Schwarzer                       office: +49-(0)711-685-7606 fax: x-3658
Uni Stuttgart, ICA 1         (?-      

70569 Stuttgart, Germany    -V_/----     http://www.ica1.uni-stuttgart.de/~sts

set size square 0.707,1
set origin 0,0

# set out 'profile-multi.eps'
set multiplot

set title
set nokey

set size square 1/3.,1/3.
# set size square 0.33,0.33

#set origin 0.0,1/2.
set origin  0.0,1/3.

plot [4:26] [0:0.45] sin(x)

set origin 0.35,0.5
#set origin 0.35,1/3.

plot [4:26] [0:0.45] sin(x)

set origin 0.,0.

plot [4:26] [0:0.45] sin(x)

set origin 0.35,0.0

plot [4:26] [0:0.45] sin(x)
set nomultiplot
pause -1

 
 
 

strange sizes in multiplot

Post by Stefan Schwarze » Wed, 23 Aug 2000 04:00:00


Sorry - I forgot: I am using gnuplot 3.7.1 on linux (RH 5.2) and
solaris (7).


> I ran across an oddity when I wanted to combine some very similar plots on one
> page. The issue is that the size of a plot within the bracket set by

--
Stefan Schwarzer                       office: +49-(0)711-685-7606 fax: x-3658
Uni Stuttgart, ICA 1         (?-      

70569 Stuttgart, Germany    -V_/----     http://www.ica1.uni-stuttgart.de/~sts

 
 
 

strange sizes in multiplot

Post by Hans-Bernhard Broeke » Wed, 23 Aug 2000 04:00:00



> plots on one page. The issue is that the size of a plot within the
> bracket set by 'set multiplot' and 'set nomultiplot' depends on the
> position of the plot as controlled by 'set origin'.

We've had a report vaguely along the same line, before, and I tried to
debug it. But IIRC, I didn't manage to find the actual reason for the
miscalculation. The boundary calculation really is a huge, and almost
untamed beast.

Quote:> The following simplified script illustrates the problem.

[... no plot script seen, at this end ... ]

Quote:> Is there an explanation for this interaction between 'set origin'
> and 'set size' or is this a bug?

There is an explanation. The explanation is that this is, indeed, a
bug. :-)

--

Even if all the snow were burnt, ashes would remain.

 
 
 

1. size in multiplot

Hi all,

I am plotting four graphs on one page using the multiplot mode. Since
tic labels are the same for two of the graphs respectively, the are
omitted at some graphs. Here an example that shows the problem for two
graphs.

set size 0.50, 0.50

set origin 0.00, 0.50
set nolabel
set format y "%5.1f"
set format x "%5.1f"
plot [:][:] \
'datafile.dat' u 3:4 t 'Exp.' lt 3 pt 5 ,\
'datafile.dat' u 3:4 t "LES"  w l  lt 1 lw 3

set origin 0.50, 0.50
set nolabel
set format y ""
set format x ""
plot [:][:] \
'datafile.dat' u 3:4 t 'Exp.' lt 3 pt 5 ,\
'datafile.dat' u 3:4 t "LES"  w l  lt 1 lw 3

Now, the plots have different sizes due to the tic labels. Is there any
workaround other than the 'trial and error' methode by playing with size
and origin ??

I am sure that question has been asked frequently, but did not find an
answer in the FAQ.

Thanks a lot,

Dirk

2. 16 Commercial Printing with PSP generated images?

3. distance between tic labels and tics, font size in multiplot mode

4. any opinion on the Xenon XEN1810EM 18.1" LCD display?

5. Setting screen size of a plot in multiplot

6. 3d Collision detection

7. title font size, multiplot graph....

8. Page size changes in mid print run

9. automatic way of setting origin/size in multiplots?

10. multiplot plot sizes

11. Strange changes in file size

12. Problem with small grid size and strange things happen

13. Draw 7, strange shinking of file size?