Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #900

Re: Multiplot plot size problem

From Ingo Thies <ingo.thies@gmx.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Multiplot plot size problem
Date 2012-02-03 10:51 +0100
Message-ID <9p1p1mF2fpU1@mid.individual.net> (permalink)
References <66e2ee72-f990-451f-84df-dbe058892d04@t30g2000vbx.googlegroups.com>

Show all headers | View raw


On 02.02.2012 18:28, Anthony wrote:

> As you can see the y axis is scaled differently for the different
> plots for some reason.
> Is there a way to fix this?

You can explicitely specify the fraction of the canvas in x and y
position (measured from left to right and bottom to top), where the
margins should be set. Example:

set lmargin 0.1   # leave some space for y labels
set rmargin 1.0

# Bottom frame
set bmargin 0.1   # leave some space for ylabel
set tmargin 0.26
set xlabel 'xlabel text'
plot ...
# second from bottom
set bmargin 0.26
set tmargin 0.42
unset xlabel
set format x ''
plot ...
# third from bottom
set bmargin 0.42
set tmargin 0.58
plot ...
# fourth from bottom
set bmargin 0.58
set tmargin 0.84
plot ...
#...
# Top frame
set bmargin 0.84
set tmargin 1.00
plot ...

You might also consider to place the xlabels and numbers only below the
bottom panel, and remove the gap (as done in the - incomplete! - example
above)

I have written a set of scripts for easy gap-free placing of subframes,
maybe it is of some help to you:

http://www.astro.uni-bonn.de/~ithies/gnuplot/mplayout/

HTH,
Ingo

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Multiplot plot size problem Anthony <anthony.brandon@gmail.com> - 2012-02-02 09:28 -0800
  Re: Multiplot plot size problem "Alex van der Spek" <zdoor@xs4all.nl> - 2012-02-02 21:03 +0100
  Re: Multiplot plot size problem Ingo Thies <ingo.thies@gmx.de> - 2012-02-03 10:51 +0100
  Re: Multiplot plot size problem Péter Juhász <peter.juhasz83@gmail.com> - 2012-02-02 11:12 -0800
    Re: Multiplot plot size problem Anthony Brandon <anthony.brandon@gmail.com> - 2012-02-03 07:25 -0800

csiph-web