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


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

Re: Multiplot question

From Christoph Bersch <usenet@bersch.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Multiplot question
Date 2013-03-26 15:57 +0100
Organization A noiseless patient Spider
Message-ID <kiscs1$brs$1@dont-email.me> (permalink)
References <kirps0$4b7$1@dont-email.me>

Show all headers | View raw


Hi,

Am 26.03.2013 10:30, schrieb Dieter Britz:
> I have the following multiplot
[...]
> However, I would like the right-hand one stretched
> in the x-direction by a factor, but to keep its
> vertical height.

I tried around a bit with 'set size ratio', but the x-size remained the 
same, only the y-size changed:

set size square
set multiplot layout 1,2
plot sin(x)
set size ratio 0.8
plot sin(x)
unset multiplot


What I can come up with is some manual corrections:

Use margins of the left plot using the GPVAL_TERM_* variables which are 
provided after the first plot (see with 'show variables all') to 
calculate fixed margins for the right plot:

set size square
set multiplot layout 1,2
set size 0.4,1
plot sin(x)
top_margin = (1.0*GPVAL_TERM_YMAX)/GPVAL_TERM_YSIZE
bottom_margin = (1.0*GPVAL_TERM_YMIN)/GPVAL_TERM_YSIZE
left_margin = (1.0*GPVAL_TERM_XMIN)/GPVAL_TERM_XSIZE
right_margin = (1.0*GPVAL_TERM_XMAX)/GPVAL_TERM_XSIZE
set size noratio
set tmargin at screen top_margin
set bmargin at screen bottom_margin
set lmargin at screen 0.5+left_margin - 0.05
set rmargin at screen 0.5+right_margin + 0.05
plot sin(x)
unset multiplot

I hope, this is not the best solution ;-)
Christoph

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


Thread

Multiplot question Dieter Britz <dieterhansbritz@gmail.com> - 2013-03-26 09:30 +0000
  Re: Multiplot question Karl <mail.kfr@gmx.net> - 2013-03-26 14:21 +0100
    Re: Multiplot question Dieter Britz <dieterhansbritz@gmail.com> - 2013-03-26 13:35 +0000
  Re: Multiplot question Ingo Thies <ingo.thies@gmx.de> - 2013-03-26 15:57 +0100
    Re: Multiplot question Dieter Britz <dieterhansbritz@gmail.com> - 2013-04-04 09:01 +0000
      Re: Multiplot question sfeam <sfeam@users.sourceforge.net> - 2013-04-04 12:08 -0700
        Re: Multiplot question Dieter Britz <dieterhansbritz@gmail.com> - 2013-04-05 08:44 +0000
  Re: Multiplot question Christoph Bersch <usenet@bersch.net> - 2013-03-26 15:57 +0100

csiph-web