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


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

Re: Squeezed Y direction output from multiplot

From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Squeezed Y direction output from multiplot
Date 2022-06-22 07:51 +0200
Organization A noiseless patient Spider
Message-ID <t8ualm$b92$1@dont-email.me> (permalink)
References <ea3e5f9d-8dda-436c-9c81-2ca17788c5b2n@googlegroups.com> <t8h99u$h3p$1@dont-email.me> <5d8be67a-de68-47e4-8c76-07ee600169d6n@googlegroups.com>

Show all headers | View raw


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

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


Thread

Squeezed Y direction output from multiplot Shahid Maqbool <shahid718@gmail.com> - 2022-06-16 07:04 -0700
  Re: Squeezed Y direction output from multiplot qrk <SpamTrap@spam.net> - 2022-06-16 20:46 -0500
  Re: Squeezed Y direction output from multiplot Jörg Buchholz <bookwood4new@freenet.de> - 2022-06-17 09:08 +0200
    Re: Squeezed Y direction output from multiplot Shahid Maqbool <shahid718@gmail.com> - 2022-06-17 09:41 -0700
      Re: Squeezed Y direction output from multiplot Jörg Buchholz <bookwood4new@freenet.de> - 2022-06-22 07:51 +0200

csiph-web