Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Squeezed Y direction output from multiplot Date: Wed, 22 Jun 2022 07:51:51 +0200 Organization: A noiseless patient Spider Lines: 52 Message-ID: References: <5d8be67a-de68-47e4-8c76-07ee600169d6n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 22 Jun 2022 05:51:50 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="1a0130ec0ae5d15da15bb5696b655a30"; logging-data="11554"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4WTz1nOpjLGO4P7u1P9p+g0461BijRKU=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Cancel-Lock: sha1:0LBbOJvyZ/zsMfkNfSdYgO/ZacA= In-Reply-To: <5d8be67a-de68-47e4-8c76-07ee600169d6n@googlegroups.com> Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4482 On 17.06.2022 18:41, Shahid Maqbool wrote: > On Friday, 17 June 2022 at 3:08:49 pm UTC+8, Jörg Buchholz wrote: >> On 16.06.2022 16:04, Shahid Maqbool wrote: >>> Dear all, >>> >>> I am using this example to understand multiple plots on the same >>> output. The souce site is: >>> http://gnuplot.sourceforge.net/demo_5.4/layout.html >>> >>> >>> The output is a bit squeezed in the y direction. Can anyone explain >>> how to correct it? I want uniform x and y dimensions, a square domain >>> is desirable, precisely. Thanks in advance! >>> >>> Regards Shahid >> If you want to have the same dimension of the graphs you must set the >> margins. Example: >> >> set margins 10,10,1,1 >> set multiplot layout 2,1 >> plot sin(x) >> plot sin(x)+100 >> unset multiplot >> >> Jörg > It is still not working for the 2,2 multiplot, especially with the titles turned on. > > Shahid With this example you get a 2*2 layout. One plot has a title with two lines, one has no title and the other have titles with one line. All have the same x and y dimension. unset title set margins 10,2,2,4 set ytics format "%.1f" set multiplot set size 0.5,0.5 set origin 0,0 plot sin(x) set origin 0,0.5 set title "Plot\nTest" plot sin(x)+100 set origin 0.5,0 set title "Plot" plot sin(x) set origin 0.5,0.5 set title "Plot" plot sin(x)+100 unset multiplot Jörg