# Shift the a) plot to towards the center and enlarge the size of the paper

**URL:** <https://forum.generic-mapping-tools.org/t/shift-the-a-plot-to-towards-the-center-and-enlarge-the-size-of-the-paper/3769>\
**Category:** Q&A\
**Created:** [March 19, 2023, 1:31am UTC](https://forum.generic-mapping-tools.org/t/shift-the-a-plot-to-towards-the-center-and-enlarge-the-size-of-the-paper/3769 "2023-03-19T01:31:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafa\_0110](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/rafa_0110/32/2527_2.png) [@rafa\_0110](https://forum.generic-mapping-tools.org/u/rafa_0110)\
**Post date:** [March 19, 2023, 1:31am UTC](https://forum.generic-mapping-tools.org/t/shift-the-a-plot-to-towards-the-center-and-enlarge-the-size-of-the-paper/3769/1 "2023-03-19T01:31:18Z")

</div>

Hi! I generated the following plot and I am trying two things:

1. Shift the the figure a) towards the center.
2. Trying to enlarge the size of the paper in a way that the borders of the plots look a little bit better.

I haven’t got with the correct command? Do you have some suggestion?

 ![Screenshot from 2023-03-19 02-11-21](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/4/4e278d746a00e9e7a7413424f91be73fc5f69c3e.png)  
Here’s is my script:

gmt subplot begin 3x1 -A+JTL+o0.8c -Fs10c/5c -M15p  
gmt subplot set 0 #Subplot 1  
centerN=36.75754 # latitude in degrees  
centerE=69.8462 # longitude in degrees  
map\_radi=2.8i  
map\_horz=100  
col\_cont=217.6/217.6/217.6  
col\_plb=245.7600/204.8000/204.8000

gmt coast -Rg -JE$centerE/$centerN/$map\_horz/$map\_radi -Dc -A100000 -G$col\_cont -Swhite -W0.3p -Baf  
awk -F’ ’ ‘{print($1,$2)}’ Global\_catalog.txt | gmt psxy -Rg -JE$centerE/$centerN/$map\_horz/$map\_radi -Sc0.08c -Gbrown -W.1p,black

gmt psxy PB2002\_boundaries\_GMTready.txt -JE$centerE/$centerN/$map\_horz/$map\_radi -Rg -W0.05p,orange

gmt psxy -JE$centerE/$centerN/$map\_horz/$map\_radi -SE- -W.8p,white -Rg \<\< EOF  
$centerE $centerN 6660  
$centerE $centerN 21090  
EOF  
gmt psxy -JE$centerE/$centerN/$map\_horz/$map\_radi -SE- -Wblack,- -Rg \<\< EOF  
$centerE $centerN 6660  
$centerE $centerN 21090  
EOF  
gmt psxy -JE$centerE/$centerN/$map\_horz/$map\_radi -Sx0.3c -W0.5p,black -Rg \<\< EOF  
$centerE $centerN  
EOF

gmt pstext -JE$centerE/$centerN/$map\_horz/$map\_radi -F+f7p -Gwhite -Rg \<\<EOF  
70 -58 95\217  
70 -353 30\217  
EOF

gmt subplot set 1,0 #Subplot 2  
awk ‘{print $3}’ HIST | gmt histogram -Bx+l"Slowness (@./km)" -By+l"Counts" -BWSne -R4/9.5/0/15 -Ggray -W1p -Z1 -T0.2

gmt subplot set 2,0 #Subplot 3  
awk ‘{print $4}’ HIST | gmt histogram -Bx+l"Backazimuth(@.)" -By+l"Counts" -BWSne -R0/360/0/40 -Ggray -W1p -Z1 -T20  
gmt subplot end  
gmt end show

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![rafa\_0110](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/rafa_0110/32/2527_2.png) [@rafa\_0110](https://forum.generic-mapping-tools.org/u/rafa_0110)\
**Post date:** [March 19, 2023, 1:36am UTC](https://forum.generic-mapping-tools.org/t/shift-the-a-plot-to-towards-the-center-and-enlarge-the-size-of-the-paper/3769/2 "2023-03-19T01:36:15Z")

</div>

> gmt subplot begin 3x1 -A+JTL+o0.8c -Fs10c/5c -M15p  
> gmt subplot set 0 #Subplot 1  
> centerN=36.75754 # latitude in degrees  
> centerE=69.8462 # longitude in degrees  
> map\_radi=2.8i  
> map\_horz=100  
> col\_cont=217.6/217.6/217.6  
> col\_plb=245.7600/204.8000/204.8000

> gmt coast -Rg -JE$centerE/$centerN/$map\_horz/$map\_radi -Dc -A100000 -G$col\_cont -Swhite -W0.3p -Baf  
> awk -F’ ’ ‘{print($1,$2)}’ Global\_catalog.txt | gmt psxy -Rg -JE$centerE/$centerN/$map\_horz/$map\_radi -Sc0.08c -Gbrown -W.1p,black

> gmt psxy PB2002\_boundaries\_GMTready.txt -JE$centerE/$centerN/$map\_horz/$map\_radi -Rg -W0.05p,orange  
> gmt psxy -JE$centerE/$centerN/$map\_horz/$map\_radi -SE- -W.8p,white -Rg \<\< EOF  
> $centerE $centerN 6660  
> $centerE $centerN 21090  
> EOF  
> gmt psxy -JE$centerE/$centerN/$map\_horz/$map\_radi -SE- -Wblack,- -Rg \<\< EOF  
> $centerE $centerN 6660  
> $centerE $centerN 21090  
> EOF  
> gmt psxy -JE$centerE/$centerN/$map\_horz/$map\_radi -Sx0.3c -W0.5p,black -Rg \<\< EOF  
> $centerE $centerN  
> EOF

> gmt pstext -JE$centerE/$centerN/$map\_horz/$map\_radi -F+f7p -Gwhite -Rg \<\<EOF  
> 70 -58 95\217  
> 70 -353 30\217  
> EOF  
> gmt subplot set 1,0 #Subplot 2  
> awk ‘{print $3}’ HIST | gmt histogram -Bx+l"Slowness (@./km)" -By+l"Counts" -BWSne -R4/9.5/0/15 -Ggray -W1p -Z1 -T0.2  
> gmt subplot set 2,0 #Subplot 3  
> awk ‘{print $4}’ HIST | gmt histogram -Bx+l"Backazimuth(@.)" -By+l"Counts" -BWSne -R0/360/0/40 -Ggray -W1p -Z1 -T20  
> gmt subplot end  
> gmt end show

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [March 21, 2023, 1:49pm UTC](https://forum.generic-mapping-tools.org/t/shift-the-a-plot-to-towards-the-center-and-enlarge-the-size-of-the-paper/3769/4 "2023-03-21T13:49:32Z")

</div>

You need -X and/or -Y.  
These are basic options that you’ll find across many modules, including subplot.  
Please take the time to read the documentation.

---

<div class="post-metadata">

**Author:** ![rafa\_0110](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/rafa_0110/32/2527_2.png) [@rafa\_0110](https://forum.generic-mapping-tools.org/u/rafa_0110)\
**Post date:** [March 21, 2023, 7:18pm UTC](https://forum.generic-mapping-tools.org/t/shift-the-a-plot-to-towards-the-center-and-enlarge-the-size-of-the-paper/3769/5 "2023-03-21T19:18:00Z")

</div>

Thank you @PlanetGus!!
