multiplot question

  • Follow


Sometimes I do a multiplot, as a single column, where the x-axis and its
range is common to all plots, but the y-ranges vary greatly. Usually, this
results in the x-axis length varying from one plot to another, in order to
fit both the plot and the y-axis labels into the width. To align x, I then
control the format of the y-labels and it sometimes takes a bit of fiddling
before I get it right, and am not really happy with the results. For
example, I might have numbers like 0.001 on one plot, and 10.00 in another,
where 10.0 or even 10 would do, but has different field width.

Is there a way to control the width of the x-range, and let the axis labels
do their automatic thing, without disturbing those widths?
-- 
Dieter Britz (dieterhansbritz<at>gmail.com)
0
Reply Dieter 2/17/2011 12:51:55 PM

On Feb 17, 1:51=A0pm, Dieter Britz <br...@chem.au.dk> wrote:
> Sometimes I do a multiplot, as a single column, where the x-axis and its
> range is common to all plots, but the y-ranges vary greatly. Usually, thi=
s
> results in the x-axis length varying from one plot to another, in order t=
o
> fit both the plot and the y-axis labels into the width. To align x, I the=
n
> control the format of the y-labels and it sometimes takes a bit of fiddli=
ng
> before I get it right, and am not really happy with the results. For
> example, I might have numbers like 0.001 on one plot, and 10.00 in anothe=
r,
> where 10.0 or even 10 would do, but has different field width.
>
> Is there a way to control the width of the x-range, and let the axis labe=
ls
> do their automatic thing, without disturbing those widths?
> --
> Dieter Britz (dieterhansbritz<at>gmail.com)

I think you need

set lmargin at screen 0.2
set rmargin at screen 0.95

Given before the first plot of the multiplot sequence, these commands
will place the borders (the left and right margins) of all plots at
the same absolute positions, regardless of font sizes, tic formats
etc.
Play with the numbers a bit to get the borders at the exact positions
you want.

P=E9ter Juh=E1sz
0
Reply ISO 2/17/2011 3:36:00 PM


17.02.2011 18:51, Dieter Britz пишет:
> Sometimes I do a multiplot, as a single column, where the x-axis and its
> range is common to all plots, but the y-ranges vary greatly. Usually, this
> results in the x-axis length varying from one plot to another, in order to
> fit both the plot and the y-axis labels into the width. To align x, I then
> control the format of the y-labels and it sometimes takes a bit of fiddling
> before I get it right, and am not really happy with the results. For
> example, I might have numbers like 0.001 on one plot, and 10.00 in another,
> where 10.0 or even 10 would do, but has different field width.
>
> Is there a way to control the width of the x-range, and let the axis labels
> do their automatic thing, without disturbing those widths?

You can use external programs/scripts to create gnuplot files. I'm using 
for these purposes Perl script which calculates min/max values of Y data 
and creates gnuplot files.
0
Reply Michael 2/17/2011 3:37:51 PM

2 Replies
280 Views

(page loaded in 0.063 seconds)

4/28/2013 3:00:13 AM


Reply: