Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GMT themes (sets of GMT defaults) #3344

Merged
merged 206 commits into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
c3a1307
Add new GMT_THEME default setting
PaulWessel May 16, 2020
07af5ab
Update names
PaulWessel May 17, 2020
1df55ec
Create darkmode.conf
PaulWessel May 17, 2020
f05bb23
Wrap up theme machinery
PaulWessel May 17, 2020
0def46e
Update gmt.conf.rst
PaulWessel May 17, 2020
611a61b
Update darkmode.conf
PaulWessel May 17, 2020
cbd49f9
Play with modern.conf
PaulWessel May 17, 2020
4551f91
Trial modern.conf
PaulWessel May 17, 2020
01feca1
Address comments
PaulWessel May 17, 2020
cdb9030
use AvantGarde font
PaulWessel May 17, 2020
e9bff3e
Bold titles
PaulWessel May 18, 2020
511f552
Update modern.conf
PaulWessel May 18, 2020
8b2a6b3
Update modern.conf
PaulWessel May 18, 2020
6ad3637
Merge branch 'master' into gmt-themes
PaulWessel Jun 8, 2020
64c0c62
Merge branch 'master' into gmt-themes
PaulWessel Jun 9, 2020
8d41cab
Implement auto scaling
PaulWessel Jun 9, 2020
3f4c3a3
Update modern.conf
PaulWessel Jun 9, 2020
6f10284
Update gmt_plot.c
PaulWessel Jun 9, 2020
b58d03f
Update gmt_map.c
PaulWessel Jun 9, 2020
1f2948a
smaller offsets
PaulWessel Jun 9, 2020
a625c0e
Merge branch 'master' into gmt-themes
PaulWessel Jun 9, 2020
bac858c
Merge branch 'master' into gmt-themes
PaulWessel Jun 10, 2020
a6be58f
Merge branch 'master' into gmt-themes
PaulWessel Jun 10, 2020
e2d3ccb
Merge branch 'master' into gmt-themes
PaulWessel Jun 10, 2020
30076a8
Let modern have modern defaults
PaulWessel Jun 11, 2020
919fef0
Update modern.conf
PaulWessel Jun 11, 2020
2d2292d
Updates
PaulWessel Jun 11, 2020
2e027ac
Leave gridlines black and lines with butt cap
PaulWessel Jun 11, 2020
10c9d39
Update inverse and darkmode to be modern
PaulWessel Jun 11, 2020
1ab5906
Merge branch 'master' into gmt-themes
PaulWessel Jun 12, 2020
0a021c4
Merge branch 'master' into gmt-themes
PaulWessel Jun 12, 2020
ffe84e5
Merge branch 'master' into gmt-themes
PaulWessel Jun 12, 2020
7c46728
Merge branch 'master' into gmt-themes
PaulWessel Jun 13, 2020
47a982b
Move the auto-font-size function to gmt_init.c
PaulWessel Jun 13, 2020
09661e3
Allow --PAR-value overrides for auto scaling
PaulWessel Jun 13, 2020
d8d3cd4
Merge branch 'master' into gmt-themes
PaulWessel Jun 13, 2020
b0042eb
Update gmt_init.c
PaulWessel Jun 13, 2020
946a0b0
Improve scripts in general
PaulWessel Jun 13, 2020
06025aa
Update scripts and fix internals
PaulWessel Jun 14, 2020
aedb084
Eliminate unneeded gmt set calls
PaulWessel Jun 14, 2020
e815443
Merge branch 'master' into gmt-themes
PaulWessel Jun 14, 2020
6bc2bca
Update gmt_init.c
PaulWessel Jun 14, 2020
38cc749
Update gmt_init.c
PaulWessel Jun 14, 2020
89cd1ff
Use auto <--> NaN in gmt.conf parsing
PaulWessel Jun 15, 2020
e4c24c9
Update gmt_init.c
PaulWessel Jun 15, 2020
4891b97
Use NaN for undefined font size as well
PaulWessel Jun 15, 2020
495f251
Eliminate unneeded MAP_AUTO_SCALE
PaulWessel Jun 15, 2020
5beab25
Update docs
PaulWessel Jun 15, 2020
07028a8
Update subplot.c
PaulWessel Jun 15, 2020
28f3dc5
Update psscale.c
PaulWessel Jun 15, 2020
94c46b3
update undefined defaults at end of GMT_Parse_Common
PaulWessel Jun 15, 2020
26fcdce
Merge branch 'master' into gmt-themes
PaulWessel Jun 16, 2020
117f9e6
Merge branch 'master' into gmt-themes
PaulWessel Jun 16, 2020
45fbdc9
Merge branch 'master' into gmt-themes
PaulWessel Jun 16, 2020
b52e985
Merge branch 'master' into gmt-themes
PaulWessel Jun 16, 2020
0f0364f
Fix subplot with WrStZ defaults under modern
PaulWessel Jun 17, 2020
e49cb23
Merge branch 'master' into gmt-themes
PaulWessel Jun 17, 2020
46f45b6
Merge branch 'master' into gmt-themes
PaulWessel Jun 17, 2020
ec2c3ac
Let MAP_ANNOT_MIN_SPACING join the auto-scaled items
PaulWessel Jun 17, 2020
c22b2d2
Do not let gmtset expand auto to anything
PaulWessel Jun 18, 2020
34ac6bf
Merge branch 'master' into gmt-themes
PaulWessel Jun 19, 2020
b6059ff
Merge branch 'master' into gmt-themes
PaulWessel Jun 19, 2020
e7c399e
Fix vector shape init
PaulWessel Jun 19, 2020
9fdad46
protect sides in psscale.
PaulWessel Jun 20, 2020
73caced
Update gmt_init.c
PaulWessel Jun 20, 2020
1d6483c
Fix pstext to initialize default font
PaulWessel Jun 20, 2020
a973ac6
Merge branch 'master' into gmt-themes
PaulWessel Jun 20, 2020
c75890d
Forgot to update the theme in gmtinit_conf_modern_override (#3508)
PaulWessel Jun 20, 2020
3fbf791
Merge branch 'master' into gmt-themes
PaulWessel Jun 21, 2020
f5509b9
Merge branch 'master' into gmt-themes
PaulWessel Jun 21, 2020
0ec026d
Lengthen ticks and slightly increase font size
PaulWessel Jun 22, 2020
2a2996e
Fix multiple addition of frame width
PaulWessel Jun 22, 2020
d4d934b
Merge branch 'master' into gmt-themes
PaulWessel Jun 22, 2020
e7354cc
Merge branch 'master' into gmt-themes
PaulWessel Jun 23, 2020
5580651
Merge branch 'master' into gmt-themes
PaulWessel Jun 27, 2020
d16a458
Merge branch 'master' into gmt-themes
PaulWessel Jun 28, 2020
de284d6
Update gmt_init.c
PaulWessel Jun 28, 2020
899b4aa
Merge branch 'master' into gmt-themes
PaulWessel Jun 30, 2020
bc0b648
Merge branch 'master' into gmt-themes
PaulWessel Jul 2, 2020
8bf9065
Merge branch 'master' into gmt-themes
PaulWessel Jul 27, 2020
9dfc08a
Merge branch 'master' into gmt-themes
PaulWessel Aug 5, 2020
5cf6ccd
Merge branch 'master' into gmt-themes
PaulWessel Aug 6, 2020
111cfa2
Merge branch 'master' into gmt-themes
PaulWessel Aug 7, 2020
949405d
Merge branch 'master' into gmt-themes
PaulWessel Aug 8, 2020
40e8998
Merge branch 'master' into gmt-themes
PaulWessel Aug 23, 2020
3c08a11
Merge branch 'master' into gmt-themes
PaulWessel Sep 20, 2020
4e0905e
Merge branch 'master' into gmt-themes
PaulWessel Oct 22, 2020
3a59e40
Merge branch 'master' into gmt-themes
PaulWessel Oct 23, 2020
32f41f8
Merge branch 'master' into gmt-themes
PaulWessel Oct 23, 2020
c3a85cb
Merge branch 'master' into gmt-themes
PaulWessel Oct 23, 2020
3b89ca9
Merge branch 'master' into gmt-themes
PaulWessel Oct 27, 2020
f47bef1
Update gmt_init.c
PaulWessel Oct 27, 2020
1e6f44c
Merge branch 'master' into gmt-themes
PaulWessel Nov 2, 2020
a5c5079
Merge branch 'master' into gmt-themes
PaulWessel Nov 9, 2020
d174641
Merge branch 'master' into gmt-themes
PaulWessel Nov 19, 2020
fb5dd69
Merge branch 'master' into gmt-themes
PaulWessel Nov 21, 2020
14f5232
Merge branch 'master' into gmt-themes
PaulWessel Nov 24, 2020
0dcbf8a
Merge branch 'master' into gmt-themes
PaulWessel Nov 24, 2020
518f0f0
Update inverse.conf
PaulWessel Nov 24, 2020
6411258
Merge branch 'master' into gmt-themes
PaulWessel Nov 29, 2020
b2caeb7
Merge branch 'master' into gmt-themes
PaulWessel Nov 29, 2020
d9ec934
Merge branch 'master' into gmt-themes
PaulWessel Nov 30, 2020
037a305
Merge branch 'master' into gmt-themes
PaulWessel Dec 17, 2020
fdf1278
Update gmt_init.c
PaulWessel Dec 17, 2020
17d28db
Merge branch 'master' into gmt-themes
PaulWessel Dec 18, 2020
90fe9b3
Fix auto setting for MAP_FRAME_WIDTH
Dec 19, 2020
4f94c6c
Merge branch 'master' into gmt-themes
PaulWessel Dec 19, 2020
8c11d96
Merge branch 'master' into gmt-themes
PaulWessel Dec 20, 2020
1ab298d
Merge branch 'master' into gmt-themes
PaulWessel Dec 21, 2020
21645b9
Update modern theme and add minimal theme (#4596)
Dec 22, 2020
abd1574
Merge branch 'master' into gmt-themes
PaulWessel Dec 23, 2020
24dee4e
Merge branch 'master' into gmt-themes
PaulWessel Dec 23, 2020
d16d038
Merge branch 'master' into gmt-themes
PaulWessel Dec 24, 2020
762263d
Merge branch 'master' into gmt-themes
PaulWessel Dec 25, 2020
9eff498
Merge branch 'master' into gmt-themes
PaulWessel Dec 26, 2020
f178119
Merge branch 'master' into gmt-themes
PaulWessel Dec 26, 2020
fb202a4
Merge branch 'master' into gmt-themes
PaulWessel Dec 27, 2020
4cef503
Merge branch 'master' into gmt-themes
PaulWessel Dec 27, 2020
a4adf9d
Merge branch 'master' into gmt-themes
PaulWessel Dec 27, 2020
07d3cf7
Merge branch 'master' into gmt-themes
PaulWessel Dec 28, 2020
36c7f48
Merge branch 'master' into gmt-themes
PaulWessel Dec 29, 2020
44231d2
Remove unfinished themes darkmode, inverse, movie
PaulWessel Dec 30, 2020
f407415
Update doc/rst/source/gmt.conf.rst
PaulWessel Jan 2, 2021
fc1c770
Update src/gmt_init.c
PaulWessel Jan 2, 2021
9b6c1c7
Merge branch 'master' into gmt-themes
PaulWessel Jan 3, 2021
212ca8f
Merge branch 'master' into gmt-themes
PaulWessel Jan 4, 2021
dc202e6
Merge branch 'master' into gmt-themes
PaulWessel Jan 6, 2021
35201fc
Merge branch 'master' into gmt-themes
PaulWessel Jan 8, 2021
947c0d1
Merge branch 'master' into gmt-themes
PaulWessel Jan 9, 2021
c9b0e50
Merge branch 'master' into gmt-themes
PaulWessel Jan 10, 2021
94f52ca
Merge branch 'master' into gmt-themes
PaulWessel Jan 12, 2021
49d9db2
Merge branch 'master' into gmt-themes
PaulWessel Jan 17, 2021
338ecfc
Merge branch 'master' into gmt-themes
PaulWessel Jan 17, 2021
e293b84
Merge branch 'master' into gmt-themes
PaulWessel Jan 17, 2021
4dd8bbe
Merge branch 'master' into gmt-themes
PaulWessel Jan 18, 2021
c8edc3d
Update doc/rst/source/cookbook/features.rst
Jan 20, 2021
a303ef7
Update doc/examples/ex41/ex41.sh
Jan 20, 2021
a02d297
Merge branch 'master' into gmt-themes
PaulWessel Jan 24, 2021
6f469ca
Merge branch 'master' into gmt-themes
PaulWessel Jan 24, 2021
2236a6b
Merge branch 'master' into gmt-themes
PaulWessel Jan 25, 2021
c1b22e6
Remove MAP_ANNOT_MIN_SPACING auto-scaling (#4704)
Jan 25, 2021
9b20b76
Update doc/scripts/GMT_TM.sh
Jan 25, 2021
e9f3081
Merge branch 'master' into gmt-themes
PaulWessel Jan 26, 2021
53350c5
Add auto-scaling for new subtitle font as well
PaulWessel Jan 28, 2021
899f9c1
Merge branch 'master' into gmt-themes
PaulWessel Jan 29, 2021
8014b27
Testing a GMT_THEME off solution (#4710)
PaulWessel Jan 29, 2021
73e2263
Themes autoaxes (#4715)
PaulWessel Jan 29, 2021
e974773
Subplot axes (#4720)
PaulWessel Jan 30, 2021
c42796f
Fix delayed get_scale calls
PaulWessel Jan 30, 2021
003a1ef
Update pslegend.c
PaulWessel Jan 30, 2021
8099be7
Update pslegend.c
PaulWessel Jan 30, 2021
3c0a6e9
Update psscale.c
PaulWessel Jan 30, 2021
6e8eace
Update pslegend.c
PaulWessel Jan 30, 2021
133d5bc
Update GMT_legend.sh
PaulWessel Jan 30, 2021
ab72c23
Use geometric mean of plot dimensions for reference, and delete temp …
PaulWessel Jan 30, 2021
6f88783
Allow testing of classic only via -DNO_THEMES
PaulWessel Jan 30, 2021
db0e920
Update gmt_map.c
PaulWessel Jan 30, 2021
0a8804d
Merge branch 'master' into gmt-themes
PaulWessel Jan 31, 2021
c70b5b6
Merge branch 'master' into gmt-themes
PaulWessel Jan 31, 2021
3214e29
Update documentation for gmt themes (#4717)
Jan 31, 2021
a4443bf
Update auto-scaling docs for unknown dimensions
Jan 31, 2021
f3ccd17
Merge branch 'master' into gmt-themes
PaulWessel Jan 31, 2021
76bfed5
Resolve conflicts and merge branch 'master' into 'gmt-themes'
Feb 2, 2021
dc32c0c
Update doc/scripts/GMT_dir_rose.sh
Feb 2, 2021
3800137
Remove trailing whitespace
Feb 2, 2021
5f70e10
Handle gmt set GMT_THEME classic in a modern session (#4726)
PaulWessel Feb 2, 2021
6c2d2ac
Merge branch 'master' into gmt-themes
Feb 13, 2021
95b45d2
Merge branch 'master' into gmt-themes
PaulWessel Feb 16, 2021
13d77c0
Update GMT_legend.sh test
Feb 17, 2021
9d294db
Add NO_THEMES definition to template
Feb 17, 2021
4b69b1f
Update GMT_Defaults_1b.sh test
Feb 17, 2021
aefbe53
Update position for anim02.sh
Feb 17, 2021
faaceff
Update TMcontours.sh test
Feb 17, 2021
e6c94d9
Init frame_width before using it to init tick length
PaulWessel Feb 18, 2021
baf362d
Merge branch 'master' into gmt-themes
PaulWessel Feb 18, 2021
bcfc284
Merge branch 'master' into gmt-themes
Feb 23, 2021
79508c9
Merge branch 'master' into gmt-themes
PaulWessel Feb 25, 2021
45c6f12
Merge branch 'master' into gmt-themes
Feb 25, 2021
b191f1a
Add auto scaling for MAP_ANNOT_MIN_SPACING
Feb 25, 2021
d166928
Auto for MAP_POLAR_CAP (#4854)
PaulWessel Feb 25, 2021
768ac07
Merge branch 'master' into gmt-themes
Mar 3, 2021
6da815a
Setup map before histogram autolegend
Mar 3, 2021
3da13b3
Explore separate MAP_ANNOT_OBLIQUE settings for oblique and other pro…
PaulWessel Mar 3, 2021
35ca192
Merge branch 'master' into gmt-themes
PaulWessel Mar 3, 2021
2bb7a65
Update gmt_init.c
PaulWessel Mar 3, 2021
3954726
Merge branch 'master' into gmt-themes
Mar 4, 2021
e9e7395
Update subplot tests
Mar 4, 2021
59b2530
Merge branch 'master' into gmt-themes
Mar 10, 2021
e5c59b8
Change warnings to debug messages
Mar 10, 2021
a365d5c
Improve spacing for anim05.sh
Mar 11, 2021
163ef48
Use consistent font size for ex49.sh
Mar 11, 2021
90b8cf9
Merge branch 'master' into gmt-themes
Mar 11, 2021
6f9f1a9
Update share/themes based on gmt_init.c
Mar 11, 2021
c736688
Update gmt.conf.rst
Mar 11, 2021
f5b246d
Update gmt-themes docs
Mar 11, 2021
99b7aea
Update PS files for -B scripts
Mar 11, 2021
89b86a7
Add cookbook theme
Mar 11, 2021
d983865
Set GMT_THEME=cookbook for doc/scripts
Mar 11, 2021
5f9df7a
Update PostScript tests
Mar 11, 2021
b91426a
Update failing test
Mar 11, 2021
dfb512e
Update failing test
Mar 11, 2021
d3bee32
Update postscript files
Mar 11, 2021
fe36b36
Update failing tests
Mar 12, 2021
6bfbe61
Update GMT_cycle_1.sh
Mar 12, 2021
92076d7
Update symbol_orientation PS files
PaulWessel Mar 12, 2021
548d1e6
Update ps for ex23 and ex49
PaulWessel Mar 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions cmake/ConfigUserAdvancedTemplate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
#add_definitions(-DUSE_COMMON_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for common GMT options
#add_definitions(-DUSE_MODULE_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for module options
#add_definitions(-DEXPORT_GMTLIB) # Turn on to access normally un-exported or static gmtlib functions from external tools
#add_definitions(-DNO_THEMES) # Turn off implementation of GMT_THEME for debugging

#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement ${CMAKE_C_FLAGS}") # recommended even for release build
#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
Expand Down
Binary file modified doc/examples/anim01/anim01.ps
Binary file not shown.
Binary file modified doc/examples/anim02/anim02.ps
Binary file not shown.
4 changes: 2 additions & 2 deletions doc/examples/anim02/anim02.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ cat << EOF > main.sh
gmt begin
width=\$(gmt math -Q \${MOVIE_WIDTH} 0.5i SUB =)
gmt grdimage topo.nc -I+a\${MOVIE_COL0}+nt2 -JM\${width} -Cmain.cpt \
-BWSne -B1 -X0.35i -Y0.3i --FONT_ANNOT_PRIMARY=9p
-BWSne -B1 -X0.4i -Y0.3i --FONT_ANNOT_PRIMARY=9p
gmt plot -Sc0.8i -Gwhite -Wthin <<< "256.25 35.6"
gmt plot -Sv0.1i+e -Gred -Wthick <<< "256.25 35.6 \${MOVIE_COL1} 0.37i"
gmt end
EOF
# 3. Run the movie
gmt movie main.sh -C3.5ix4.167ix72 -Nanim02 -Tangles.txt -Sbpre.sh -D6 -Zs $opt
gmt movie main.sh -C3.7ix4.167ix72 -Nanim02 -Tangles.txt -Sbpre.sh -D6 -Zs $opt
Binary file modified doc/examples/anim03/anim03.ps
Binary file not shown.
Binary file modified doc/examples/anim05/anim05.ps
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/examples/anim05/anim05.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cat << EOF > main.sh
gmt begin
let k=\${MOVIE_FRAME}+1
gmt greenspline @Table_5_11.txt -R0/6.5/0/6.5 -I0.05 -Sc -Gt.nc -Z1 -Cn\${k} -Emisfit.txt
gmt grdcontour t.nc -C25 -A50 -Baf -BWsNE -JX4i -Gl3.6/6.5/4.05/0.75 -Xc -Y0.4i
gmt grdcontour t.nc -C25 -A50 -Baf -BWsNE -JX4i -Gl3.6/6.5/4.05/0.75 -Xc -Y0.6i
gmt plot misfit.txt -Ct.cpt -Sc0.15c -Wfaint -i0,1,4
printf "%2.2d" \$k | gmt text -F+cTR+jTR+f18p -Dj0.1i -Gwhite -W0.25p
gmt colorbar -Ct.cpt -DJBC+e -Bxaf -By+l"misfit"
Expand Down
Binary file modified doc/examples/ex01/ex01.ps
Binary file not shown.
3 changes: 1 addition & 2 deletions doc/examples/ex01/ex01.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
# GMT EXAMPLE 01
#
# Purpose: Make two contour maps based on the data in the file osu91a1f_16.nc
# GMT modules: set, subplot, grdcontour, coast
# GMT modules: subplot, grdcontour, coast
#
gmt begin ex01
gmt set MAP_GRID_CROSS_SIZE_PRIMARY 0 FONT_ANNOT_PRIMARY 10p
gmt subplot begin 2x1 -A -M0.5c -Blrtb -Bafg -T"Low Order Geoid" -Fs16c/0 -Rg -JH16c
gmt coast -JH? -Glightbrown -Slightblue -c0,0
gmt grdcontour @osu91a1f_16.nc -C10 -A50+f7p -Gd10c -Ln -Wcthinnest,- -Wathin,- -T+d8p/2p+l
Expand Down
Binary file modified doc/examples/ex02/ex02.ps
Binary file not shown.
4 changes: 2 additions & 2 deletions doc/examples/ex02/ex02.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ gmt begin ex02
gmt subplot set 0,0 -Ce3c
gmt grd2cpt @HI_topo_02.nc -Crelief -Z
gmt grdimage @HI_topo_02.nc -I+a0
gmt colorbar -DJRM+o1.5c/0+mc -I0.3 -Bx2+lTOPO -By+lkm
gmt colorbar -DJRM+o1c/0+mc -I0.3 -Bx2+lTOPO -By+lkm

gmt subplot set 1,0 -Ce3c
gmt makecpt -Crainbow -T-2/14/2
gmt grdimage @HI_geoid_02.nc
gmt colorbar -DJRM+o1.5c/0+e+mc -Bx2+lGEOID -By+lm
gmt colorbar -DJRM+o1c/0+e+mc -Bx2+lGEOID -By+lm
gmt subplot end
gmt end show
Binary file modified doc/examples/ex03/ex03.ps
Binary file not shown.
Binary file modified doc/examples/ex04/ex04.ps
Binary file not shown.
Binary file modified doc/examples/ex04/ex04c.ps
Binary file not shown.
Binary file modified doc/examples/ex05/ex05.ps
Binary file not shown.
Binary file modified doc/examples/ex06/ex06.ps
Binary file not shown.
Binary file modified doc/examples/ex07/ex07.ps
Binary file not shown.
Binary file modified doc/examples/ex08/ex08.ps
Binary file not shown.
Binary file modified doc/examples/ex09/ex09.ps
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/examples/ex09/ex09.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ gmt begin ex09
gmt plot @ridge_09.txt -Wthicker
gmt plot @fz_09.txt -Wthinner,-
# Take label from segment header and plot near coordinates of last record of each track
gmt convert -El @tracks_09.txt | gmt text -F+f10p,Helvetica-Bold+a50+jRM+h -D-4p
gmt convert -El @tracks_09.txt | gmt text -F+f10p,Helvetica-Bold+a50+jRM+h -D-4p -Ghoneydew
gmt end show
Binary file modified doc/examples/ex10/ex10.ps
Binary file not shown.
Binary file modified doc/examples/ex11/ex11.ps
Binary file not shown.
Binary file modified doc/examples/ex12/ex12.ps
Binary file not shown.
Binary file modified doc/examples/ex13/ex13.ps
Binary file not shown.
Binary file modified doc/examples/ex14/ex14.ps
Binary file not shown.
Binary file modified doc/examples/ex15/ex15.ps
Binary file not shown.
Binary file modified doc/examples/ex16/ex16.ps
Binary file not shown.
1 change: 0 additions & 1 deletion doc/examples/ex16/ex16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Unix progs: rm
#
gmt begin ex16
gmt set FONT_ANNOT_PRIMARY 9p FONT_TITLE 18p,Times-Roman
gmt subplot begin 2x2 -M0.1c -Fs8c/0 -R0/6.5/-0.2/6.5 -Jx1c -SCb -SRl+t -Bwesn -T"Gridding of Data"
gmt surface @Table_5_11.txt -I0.2 -Graws0.nc
gmt contour @Table_5_11.txt -C@ex_16.cpt -I -B+t"contour (triangulate)" -c0,0
Expand Down
Binary file modified doc/examples/ex17/ex17.ps
Binary file not shown.
Binary file modified doc/examples/ex18/ex18.ps
Binary file not shown.
Binary file modified doc/examples/ex19/ex19.ps
Binary file not shown.
8 changes: 4 additions & 4 deletions doc/examples/ex19/ex19.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ gmt begin ex19
gmt grdimage lon.nc -Clon.cpt -nl
gmt coast -Q
gmt coast -Dc -A5000 -Wthinnest
echo "0 20 16TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
echo "0 20 17TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
echo "0 -10 GMT CONFERENCE" | gmt text -F+f32p,Helvetica-Bold,red=thinner
echo "0 -30 Honolulu, Hawaii, April 1, 2020" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
echo "0 -30 Honolulu, Hawaii, April 1, 2021" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
# Then show example of color patterns and placing a PostScript image
gmt coast -Dc -A5000 -Gp86+fred+byellow+r100 [email protected]+r100 -c1,0
echo "0 30 SILLY USES OF" | gmt text -F+f32p,Helvetica-Bold,lightgreen=thinner
Expand All @@ -30,9 +30,9 @@ gmt begin ex19
gmt grdimage lat.nc -Clat.cpt -nl
gmt coast -Q
gmt coast -Dc -A5000 -Wthinnest
echo "0 20 16TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
echo "0 20 17TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
echo "0 -10 GMT CONFERENCE" | gmt text -F+f32p,Helvetica-Bold,red=thinner
echo "0 -30 Honolulu, Hawaii, April 1, 2020" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
echo "0 -30 Honolulu, Hawaii, April 1, 2021" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
gmt subplot end
gmt end show
rm -f lat.nc lon.nc lat.cpt lon.cpt
Binary file modified doc/examples/ex20/ex20.ps
Binary file not shown.
Binary file modified doc/examples/ex21/ex21.ps
Binary file not shown.
Binary file modified doc/examples/ex22/ex22.ps
Binary file not shown.
6 changes: 2 additions & 4 deletions doc/examples/ex22/ex22.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
# GMT EXAMPLE 22
#
# Purpose: Automatic map of last month of world-wide seismicity
# GMT modules: set, coast, plot, legend
# GMT modules: coast, plot, legend
# Unix progs: cat, sed, awk, wget|curl
#
gmt begin ex22
gmt set FONT_ANNOT_PRIMARY 10p FONT_TITLE 18p FORMAT_GEO_MAP ddd:mm:ssF

# Get the data (-s silently) from USGS using the curl
# Hardwired here to the month of October, 2017
# SITE="https://earthquake.usgs.gov/fdsnws/event/1/query.csv"
Expand Down Expand Up @@ -81,7 +79,7 @@ gmt begin ex22

# OK, now we can actually run gmt legend. We center the legend below the map.
# Trial and error shows that 1.7i is a good legend height:
gmt legend -DJBC+o0/1c+w18c/4.2c -F+p+glightyellow neis.legend
gmt legend -DJBC+o0/1c+w18c/4.2c -F+p+glightyellow neis.legend --FONT_ANNOT_PRIMARY=10p,Helvetica

rm neis.legend usgs_quakes_22.txt
gmt end show
Binary file modified doc/examples/ex23/ex23.ps
Binary file not shown.
Binary file modified doc/examples/ex24/ex24.ps
Binary file not shown.
Binary file modified doc/examples/ex25/ex25.ps
Binary file not shown.
Binary file modified doc/examples/ex26/ex26.ps
Binary file not shown.
Binary file modified doc/examples/ex27/ex27.ps
Binary file not shown.
Binary file modified doc/examples/ex28/ex28.ps
Binary file not shown.
Binary file modified doc/examples/ex29/ex29.ps
Binary file not shown.
Binary file modified doc/examples/ex30/ex30.ps
Binary file not shown.
Binary file modified doc/examples/ex31/ex31.ps
Binary file not shown.
Binary file modified doc/examples/ex33/ex33.ps
Binary file not shown.
Binary file modified doc/examples/ex34/ex34.ps
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/examples/ex34/ex34.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# GMT modules: set, coast, makecpt, grdimage, subplot
#
gmt begin ex34
gmt set FORMAT_GEO_MAP dddF FONT_HEADING 24p
gmt set FONT_HEADING 24p
gmt makecpt -Cglobe -T-5000/5000
gmt subplot begin 2x1 -Fs11c/0 -M0.1c -JM11c -R-6/20/35/52 -SRl -SCb -Bwesn -T"Franco-Italian Union, 2042-45"
gmt coast -EFR,IT+gP300/8 -Glightgray -c1,0
Expand Down
Binary file modified doc/examples/ex35/ex35.ps
Binary file not shown.
Binary file modified doc/examples/ex36/ex36.ps
Binary file not shown.
Binary file modified doc/examples/ex37/ex37.ps
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/examples/ex37/ex37.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gmt begin ex37
# Prefix of two .nc files
G=grav.V18.par.surf.1km.sq
T=mb.par.surf.1km.sq
gmt set FONT_TITLE 14p GMT_FFT kiss
gmt set GMT_FFT kiss

gmt grdinfo @$T.nc -Ib > bbox
scl=1.4e-5
Expand Down
Binary file modified doc/examples/ex38/ex38.ps
Binary file not shown.
Binary file modified doc/examples/ex39/ex39.ps
Binary file not shown.
Binary file modified doc/examples/ex40/ex40.ps
Binary file not shown.
Binary file modified doc/examples/ex41/ex41.ps
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/examples/ex41/ex41.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# GMT modules: set, coast, legend, plot, makecpt
#
gmt begin ex41
gmt set FONT_ANNOT_PRIMARY 12p FONT_LABEL 12p
gmt set FONT_ANNOT_PRIMARY 12p,Helvetica FONT_LABEL 12p,Helvetica
gmt makecpt -Cred,orange,yellow,green,bisque,cyan,magenta,white,gray -T1/10/1 -N
gmt coast -R130W/50W/8N/56N -JM14c -Glightgray -Sazure1 -A1000 -Wfaint
gmt coast -EUS+glightyellow+pfaint -ECU+glightred+pfaint -EMX+glightgreen+pfaint -ECA+glightblue+pfaint
Expand Down
Binary file modified doc/examples/ex42/ex42.ps
Binary file not shown.
16 changes: 8 additions & 8 deletions doc/examples/ex42/ex42.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
# GMT EXAMPLE 42
#
# Purpose: Illustrate Antarctica and stereographic projection
# GMT modules: makecpt, grdimage, coast, legend, colorbar, text, plot
# GMT modules: makecpt, grdimage, coast, legend, colorbar, set, text, plot
# Unix progs: [curl grdconvert]
#
gmt begin ex42
gmt set FONT_ANNOT_PRIMARY 12p FONT_LABEL 12p PROJ_ELLIPSOID WGS-84 FORMAT_GEO_MAP dddF
gmt set PROJ_ELLIPSOID WGS-84
# Data obtained via website and converted to netCDF thus:
# curl http://www.antarctica.ac.uk//bas_research/data/access/bedmap/download/bedelev.asc.gz
# gunzip bedelev.asc.gz
# grdconvert bedelev.asc BEDMAP_elevation.nc=ns -V
gmt makecpt -Cearth -T-7000/4000
gmt grdimage @BEDMAP_elevation.nc -Jx1:60000000 -Q
gmt coast -R-180/180/-90/-60 -Js0/-90/-71/1:60000000 -Bafg -Di -W0.25p
gmt colorbar -DJRM+w6.5c/0.5c+o1.5c/0+mc -F+p+i -Bxa1000+lELEVATION -By+lm
gmt colorbar -DJRM+w6.5c/0.5c+o1c/0+mc -F+p+i -Bxa1000+lELEVATION -By+lm
# GSHHG
gmt coast -Glightblue -Sroyalblue2 -X5c -Y12c
gmt coast -Glightbrown -A+ag -Bafg
gmt legend -DjLM+w4c+jRM+o1c/0 -F+p+i <<- EOF
H 18p,Times-Roman Legend
gmt legend -DjLM+w3.5c+jRM+o1c/0 -F+p+i <<- EOF
H 12 Legend
D 0.25c 1p
S 0.4c s 0.5c blue 0.25p 0.75c Ocean
S 0.4c s 0.5c lightblue 0.25p 0.75c Ice front
S 0.4c s 0.5c lightbrown 0.25p 0.75c Grounding line
S 0.4c s 0.3c blue 0.25p 0.75c Ocean
S 0.4c s 0.3c lightblue 0.25p 0.75c Ice front
S 0.4c s 0.3c lightbrown 0.25p 0.75c Grounding line
EOF
# Fancy line
gmt plot -R0/19/0/25 -Jx1c -B0 -W2p -X-6c -Y-13.5c <<- EOF
Expand Down
Binary file modified doc/examples/ex43/ex43.ps
Binary file not shown.
Binary file modified doc/examples/ex44/ex44.ps
Binary file not shown.
Binary file modified doc/examples/ex45/ex45.ps
Binary file not shown.
Binary file modified doc/examples/ex46/ex46.ps
Binary file not shown.
Binary file modified doc/examples/ex47/ex47.ps
Binary file not shown.
Binary file modified doc/examples/ex48/ex48.ps
Binary file not shown.
Binary file modified doc/examples/ex49/ex49.ps
Binary file not shown.
4 changes: 2 additions & 2 deletions doc/examples/ex49/ex49.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gmt begin ex49
# Image depths with color-coded age contours
gmt makecpt -Cabyss -T-7000/0 -H > z.cpt
gmt makecpt -Chot -T0/100/10 -H > t.cpt
gmt grdimage depth_pixel.nc -JM15c -Cz.cpt -B -BWSne --FORMAT_GEO_MAP=dddF
gmt grdimage depth_pixel.nc -JM15c -Cz.cpt -B -BWSne --FORMAT_GEO_MAP=dddF --FONT_ANNOT_PRIMARY=12p
gmt plot -W1p @ridge_49.txt
gmt grdcontour age_pixel.nc -A+f14p -Ct.cpt -Wa0.1p+c -GL30W/22S/5E/13S
gmt colorbar -Cz.cpt -DjTR+w5c/0.4c+h+o0.75c/0.4c -Baf+u" km" -W0.001 -F+p1p+gbeige
Expand Down Expand Up @@ -42,7 +42,7 @@ gmt begin ex49
gmt plot ss.txt -W1p
gmt plot -Ss0.4c -Gblue modal.txt -Ey+p1p,blue
gmt plot -Ss0.1c -Gwhite modal.txt
gmt basemap -R0/100/0/6.5 -JX15c/-10c -Bxaf+u" Myr" -Byaf+u" km" -BWsNe
gmt basemap -R0/100/0/6.5 -JX15c/-10c -Bxaf+u" Myr" -Byaf+u" km" -BWsNe --FONT_ANNOT_PRIMARY=12p
gmt legend -DjRT+w6.5c+o0.25c -F+p1p+gbeige+s <<- EOF
S 0.5c - 0.9c - 4p,green 1c Parsons & Sclater (1977)
S 0.5c - 0.9c - 4p,white 1c Stein & Stein (1992)
Expand Down
Binary file modified doc/examples/ex50/ex50.ps
Binary file not shown.
1 change: 0 additions & 1 deletion doc/examples/ex50/ex50.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

gmt begin ex50
# Left column have all the PDFs
gmt set FONT_ANNOT_PRIMARY 10p,Helvetica,black
# Binomial distribution
gmt math -T0/8/1 0.25 8 T BPDF = p.txt
gmt plot -R-0.6/8.6/0/0.35 -JX7.5c/1.25c -Glightgreen p.txt -Sb0.8u -W0.5p -BWS -Bxa1 -Byaf
Expand Down
Binary file modified doc/examples/ex52/ex52.ps
Binary file not shown.
67 changes: 67 additions & 0 deletions doc/rst/source/cookbook/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,73 @@ placed in a separate parameter file:
scenarios into separate ``gmt.conf`` files will minimize headaches associated with
micro-editing of illustrations.


.. _auto-scaling:

Automatic GMT settings
~~~~~~~~~~~~~~~~~~~~~~

The **auto** flag for :doc:`GMT parameters </gmt.conf>` signals that suitable
dimensions or settings will be automatically computed when the plot dimensions
are known. The **auto** flag is supported for the following parameters:

================================== ===============================================
:term:`FONT_ANNOT_PRIMARY` Primary annotation font [11.00p]
:term:`FONT_ANNOT_SECONDARY` Secondary annotation font [13.20p]
:term:`FONT_HEADING` Subplot heading font [30.80p]
:term:`FONT_LABEL` Axis label font [15.40p]
:term:`FONT_LOGO` Logo font [8.80p]
:term:`FONT_SUBTITLE` Plot subtitle font [19.80p]
:term:`FONT_TAG` Tag/labeling font [17.60p]
:term:`FONT_TITLE` Plot title font [24.20p]
:term:`MAP_ANNOT_MIN_SPACING` Minimum space between annotations [11.00p]
:term:`MAP_ANNOT_OFFSET_PRIMARY` Primary annotation offset from axis [3.30p]
:term:`MAP_ANNOT_OFFSET_SECONDARY` Secondary annotation offset from axis [3.30p]
:term:`MAP_FRAME_AXES` Axes that are drawn and annotated
:term:`MAP_FRAME_PEN` Pen width of plain frame [1.65p]
:term:`MAP_FRAME_WIDTH` Width of fancy frame [3.30p]
:term:`MAP_GRID_PEN_PRIMARY` Pen width of primary gridline [0.28p]
:term:`MAP_GRID_PEN_SECONDARY` Pen width of secondary gridline [0.55p]
:term:`MAP_HEADING_OFFSET` Heading offset from subplot [17.60p]
:term:`MAP_LABEL_OFFSET` Label offset from annotations [6.60p]
:term:`MAP_POLAR_CAP` Appearance of gridlines near the poles
:term:`MAP_TICK_LENGTH_PRIMARY` Length of primary tick marks [2.2p/1.1p]
:term:`MAP_TICK_LENGTH_SECONDARY` Length of secondary tick marks [6.60p/1.65p]
:term:`MAP_TICK_PEN_PRIMARY` Pen width of primary tick marks [0.55p]
:term:`MAP_TICK_PEN_SECONDARY` Pen width of secondary tick marks [0.28p]
:term:`MAP_TITLE_OFFSET` Title offset from plot [13.20p]
================================== ===============================================

The reference dimensions listed in brackets are the values for a plot
with a height and width of 25 cm. Larger and smaller illustrations
will see a linear magnification or attenuation of these dimensions. The primary
annotation font size will be computed as::

size = (2/15) * (map_size_in_cm - 10) + 9 [in points]

where :math:`map\_size\_in\_cm = sqrt(map\_height x map\_width)`. All other
items will have their reference sizes scaled by :math:`scale = size / 10`. In
modern mode, if you do nothing then all of the above dimensions will be
automatically set based on your plot dimensions. However, you are free to
override any of them using the methods described in the next section. **Note**:
Selecting **auto** for font sizes and dimensions requires GMT to know the plot
dimensions. If the plot dimensions are not available (e.g., :doc:`/pslegend`
with **-Dx** and no **-R -J**), the settings will be updated using the nominal
font sizes and dimensions for a 10 x 1 cm plot. **Note**: The particular scaling
relationship is experimental in 6.2 and we reserve the right to adjust it
pending further experimentation and user feedback.

For **MAP_POLAR_CAP**, **auto** will determine a suitable *pc_lat* for your
region for all azimuthal projections and a few others in which the geographic
poles are plotted as points (Lambert Conic, Oblique Mercator, Hammer, Mollweide,
Sinusoidal, and van der Grinten).

For **MAP_FRAME_AXES**, **auto** will determine a suitable setting based on the
projection, type of plot, perspective, etc. For example, GMT will determine the
position of different quadrants for perspective and polar plots and select the
equivalent of **WrStZ**. The default for non-perspective, non-polar plots using
**MAP_FRAME_AXES**\ =\ **auto** is **WrStZ**.

Changing GMT defaults
~~~~~~~~~~~~~~~~~~~~~

Expand Down
Loading