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


Groups > comp.graphics.apps.gnuplot > #4476 > unrolled thread

Squeezed Y direction output from multiplot

Started byShahid Maqbool <shahid718@gmail.com>
First post2022-06-16 07:04 -0700
Last post2022-06-22 07:51 +0200
Articles 5 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  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

#4476 — Squeezed Y direction output from multiplot

FromShahid Maqbool <shahid718@gmail.com>
Date2022-06-16 07:04 -0700
SubjectSqueezed Y direction output from multiplot
Message-ID<ea3e5f9d-8dda-436c-9c81-2ca17788c5b2n@googlegroups.com>
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 commands I am using are these

set multiplot layout 2,2 title "Multiplot layout" font ",14"
set xtics rotate
#
set title "Plot 1"
unset key
plot sin(x)/x
#
set title "Plot 2"
unset key
plot 'silver.dat' using 1:2 ti 'silver.dat'
#
set title "Plot 3"
unset key
plot sin(x)/x
#
set title "Plot 4"
unset key
plot 'silver.dat' using 1:2 ti 'silver.dat'
#
 unset multiplot

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

[toc] | [next] | [standalone]


#4477

Fromqrk <SpamTrap@spam.net>
Date2022-06-16 20:46 -0500
Message-ID<35nnahtr3fjj6fvd995erglvqh4r566qab@4ax.com>
In reply to#4476
Set the output size to change aspect ratio. 
Example:
set term qt 0 size 600,800

On Thu, 16 Jun 2022 07:04:34 -0700 (PDT), Shahid Maqbool
<shahid718@gmail.com> 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 commands I am using are these
>
>set multiplot layout 2,2 title "Multiplot layout" font ",14"
>set xtics rotate
>#
>set title "Plot 1"
>unset key
>plot sin(x)/x
>#
>set title "Plot 2"
>unset key
>plot 'silver.dat' using 1:2 ti 'silver.dat'
>#
>set title "Plot 3"
>unset key
>plot sin(x)/x
>#
>set title "Plot 4"
>unset key
>plot 'silver.dat' using 1:2 ti 'silver.dat'
>#
> unset multiplot
>
>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

[toc] | [prev] | [next] | [standalone]


#4478

FromJörg Buchholz <bookwood4new@freenet.de>
Date2022-06-17 09:08 +0200
Message-ID<t8h99u$h3p$1@dont-email.me>
In reply to#4476
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

[toc] | [prev] | [next] | [standalone]


#4479

FromShahid Maqbool <shahid718@gmail.com>
Date2022-06-17 09:41 -0700
Message-ID<5d8be67a-de68-47e4-8c76-07ee600169d6n@googlegroups.com>
In reply to#4478
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

[toc] | [prev] | [next] | [standalone]


#4482

FromJörg Buchholz <bookwood4new@freenet.de>
Date2022-06-22 07:51 +0200
Message-ID<t8ualm$b92$1@dont-email.me>
In reply to#4479
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web