Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Christoph Bersch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Multiplot question Date: Tue, 26 Mar 2013 15:57:03 +0100 Organization: A noiseless patient Spider Lines: 44 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 26 Mar 2013 14:54:57 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="d470e712b6ca6e5726f6f421815ac75a"; logging-data="12156"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3dy3o66XkTVRnQlO1IkE/" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 In-Reply-To: Cancel-Lock: sha1:EYmIA5XFMm8fqpZ/9WlSLLQERSk= Xref: csiph.com comp.graphics.apps.gnuplot:1734 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