Skip to content

Commit f1c04a9

Browse files
PaulWesselMeghan JonesMeghan Jonesseisman
authored
Implement GMT themes (sets of GMT defaults) (#3344)
* Add new GMT_THEME default setting This will take the name of a separate .conf file that will override the current settings. * Update names * Create darkmode.conf * Wrap up theme machinery * Update gmt.conf.rst * Update darkmode.conf * Play with modern.conf * Trial modern.conf * Address comments * use AvantGarde font * Bold titles * Update modern.conf * Update modern.conf * Implement auto scaling * Update modern.conf * Update gmt_plot.c * Update gmt_map.c * smaller offsets * Let modern have modern defaults * Update modern.conf * Updates * Leave gridlines black and lines with butt cap * Update inverse and darkmode to be modern * Move the auto-font-size function to gmt_init.c * Allow --PAR-value overrides for auto scaling * Update gmt_init.c * Improve scripts in general * Update scripts and fix internals * Eliminate unneeded gmt set calls * Update gmt_init.c * Update gmt_init.c * Use auto <--> NaN in gmt.conf parsing * Update gmt_init.c * Use NaN for undefined font size as well * Eliminate unneeded MAP_AUTO_SCALE * Update docs * Update subplot.c * Update psscale.c * update undefined defaults at end of GMT_Parse_Common That is when we are done parsing any --PAR=value options * Fix subplot with WrStZ defaults under modern HEre, if we have W and a panel should not be annotated and w is not selected, then it should be l if either W or l is in the defaults. Some with b of S or b is in the default. * Let MAP_ANNOT_MIN_SPACING join the auto-scaled items Nominally 36p, it now is auto and will scale with the primary fontsize. * Do not let gmtset expand auto to anything * Fix vector shape init * protect sides in psscale. The resetting interfered with auto-annotation of colorbars. * Update gmt_init.c * Fix pstext to initialize default font * Forgot to update the theme in gmtinit_conf_modern_override (#3508) This function is called when modern theme is selected in classic or always in modern. But it failed to actually set the GMT_THEME variable so in classic mode it reverted to classic before writing out the theme. * Lengthen ticks and slightly increase font size * Fix multiple addition of frame width * Update gmt_init.c * Update gmt_init.c * Update inverse.conf * Update gmt_init.c * Fix auto setting for MAP_FRAME_WIDTH * Update modern theme and add minimal theme (#4596) * Change modern default MAP_FRAME_TYPE to fancy * Make Helvetica default font for modern theme * Remove return from gmtinit_conf_modern_override * Fix typo * Add minimal theme * Make modern font heading and title bold * Remove unfinished themes darkmode, inverse, movie * Update doc/rst/source/gmt.conf.rst Co-authored-by: Meghan Jones <[email protected]> * Update src/gmt_init.c Co-authored-by: Meghan Jones <[email protected]> * Update doc/rst/source/cookbook/features.rst Co-authored-by: Dongdong Tian <[email protected]> * Update doc/examples/ex41/ex41.sh Co-authored-by: Dongdong Tian <[email protected]> * Remove MAP_ANNOT_MIN_SPACING auto-scaling (#4704) * Update doc/scripts/GMT_TM.sh * Add auto-scaling for new subtitle font as well * Testing a GMT_THEME off solution (#4710) * Testing a GMT_THEME off solution Goal is to allow suers to override specifics in the theme settings without having the THEME be parsed again and overwrite the changes * Update gmt_init.c * Themes autoaxes (#4715) * Aadd auto mode for GMT_MAP_AXES The default choice may need to depend on view-angle, if azimuthal or cylindrical, etc. * Handle polar and rotated schemes * Update gmt_init.c * Subplot axes (#4720) * Better interplay between -S and MAP_FRAME_AXES WHen -S is used for rows or cols then we should let it do its thing, not parse MAP_FRAME_AXES. If not set then we do. * Deal with subplot-specific gmt.conf settings Must create a gmt.conf for a subplot if modern theme so that all fonts etc will be the same across all panels. * Progress on auto axes and subplots * COmments * Fix delayed get_scale calls * Update pslegend.c * Update pslegend.c * Update psscale.c * Update pslegend.c * Update GMT_legend.sh * Use geometric mean of plot dimensions for reference, and delete temp files * Allow testing of classic only via -DNO_THEMES * Update gmt_map.c * Update documentation for gmt themes (#4717) * List all parameters alphabetically * Start descriptions for themes and auto settings * Complete auto scaling documentation * Add FONT_SUBTITLE to tables * Fix classic default * Update auto scaling description * Fix font settings * Update FONT_SUBTITLE default * Update MAP_TICK_PEN_PRIMARY default docs * Update theme dependent defaults * Fix a typo * Format defaults documentation * Move theme-settings to separate docs page * Update auto scaling links * Update auto scaling documentation * Link themes table to gmt.conf keywords * Add more links between auto, gmt.conf, and themes * Fix formatting * Update MAP_ANNOT_MIN_SPACING default * Format doc/rst/source/cookbook/features.rst * Update auto-scaling docs for unknown dimensions * Update doc/scripts/GMT_dir_rose.sh * Remove trailing whitespace * Handle gmt set GMT_THEME classic in a modern session (#4726) * Handle gmt set GMT_THEME classic in a modern session Since modern defaults have been set, this PR will flag all the defaults that differ between classic and modern themes so they are updated. * Update src/gmt_init.c Co-authored-by: Meghan Jones <[email protected]> * Update GMT_legend.sh test * Add NO_THEMES definition to template * Update GMT_Defaults_1b.sh test * Update position for anim02.sh * Update TMcontours.sh test * Init frame_width before using it to init tick length Fixes the problem with sphareacentroid.sh and possibly others * Add auto scaling for MAP_ANNOT_MIN_SPACING * Auto for MAP_POLAR_CAP (#4854) * Let POLAR_CAP be auto under modern mode * Update and add docs * Update themes.conf files * Add comments * Update docs for MAP_POLAR_CAP=auto Co-authored-by: Meghan Jones <[email protected]> * Setup map before histogram autolegend * Explore separate MAP_ANNOT_OBLIQUE settings for oblique and other projections (#4890) * Explore separate MAP_ANNOT_OBLIQUE settings for oblique and other projections This PR to be merged into gmt-themes sets MAP_ANNOT_OBLIQUE to be lon_horizontal,lat_horizontao,tick_extend but will reset this to the previous default anywhere unless the user manually changed the setting. * UPdate * Reset map_annot_oblique_set when we reset settings * Update gmt_init.c * Update gmt_init.c * Update subplot tests * Change warnings to debug messages * Improve spacing for anim05.sh * Use consistent font size for ex49.sh * Update share/themes based on gmt_init.c * Update gmt.conf.rst * Update gmt-themes docs * Update PS files for -B scripts * Add cookbook theme * Set GMT_THEME=cookbook for doc/scripts * Update PostScript tests * Update failing test * Update failing test * Update postscript files * Update failing tests * Update GMT_cycle_1.sh * Update symbol_orientation PS files Both differ from origs but are good. Origs updated. * Update ps for ex23 and ex49 Co-authored-by: Meghan Jones <[email protected]> Co-authored-by: Meghan Jones <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
1 parent bbbcf83 commit f1c04a9

File tree

562 files changed

+1565
-489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

562 files changed

+1565
-489
lines changed

cmake/ConfigUserAdvancedTemplate.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
#add_definitions(-DUSE_COMMON_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for common GMT options
237237
#add_definitions(-DUSE_MODULE_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for module options
238238
#add_definitions(-DEXPORT_GMTLIB) # Turn on to access normally un-exported or static gmtlib functions from external tools
239+
#add_definitions(-DNO_THEMES) # Turn off implementation of GMT_THEME for debugging
239240

240241
#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement ${CMAKE_C_FLAGS}") # recommended even for release build
241242
#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings

doc/examples/anim01/anim01.ps

1.25 KB
Binary file not shown.

doc/examples/anim02/anim02.ps

1.17 KB
Binary file not shown.

doc/examples/anim02/anim02.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ cat << EOF > main.sh
2424
gmt begin
2525
width=\$(gmt math -Q \${MOVIE_WIDTH} 0.5i SUB =)
2626
gmt grdimage topo.nc -I+a\${MOVIE_COL0}+nt2 -JM\${width} -Cmain.cpt \
27-
-BWSne -B1 -X0.35i -Y0.3i --FONT_ANNOT_PRIMARY=9p
27+
-BWSne -B1 -X0.4i -Y0.3i --FONT_ANNOT_PRIMARY=9p
2828
gmt plot -Sc0.8i -Gwhite -Wthin <<< "256.25 35.6"
2929
gmt plot -Sv0.1i+e -Gred -Wthick <<< "256.25 35.6 \${MOVIE_COL1} 0.37i"
3030
gmt end
3131
EOF
3232
# 3. Run the movie
33-
gmt movie main.sh -C3.5ix4.167ix72 -Nanim02 -Tangles.txt -Sbpre.sh -D6 -Zs $opt
33+
gmt movie main.sh -C3.7ix4.167ix72 -Nanim02 -Tangles.txt -Sbpre.sh -D6 -Zs $opt

doc/examples/anim03/anim03.ps

1.05 KB
Binary file not shown.

doc/examples/anim05/anim05.ps

1.54 KB
Binary file not shown.

doc/examples/anim05/anim05.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cat << EOF > main.sh
2222
gmt begin
2323
let k=\${MOVIE_FRAME}+1
2424
gmt greenspline @Table_5_11.txt -R0/6.5/0/6.5 -I0.05 -Sc -Gt.nc -Z1 -Cn\${k} -Emisfit.txt
25-
gmt grdcontour t.nc -C25 -A50 -Baf -BWsNE -JX4i -Gl3.6/6.5/4.05/0.75 -Xc -Y0.4i
25+
gmt grdcontour t.nc -C25 -A50 -Baf -BWsNE -JX4i -Gl3.6/6.5/4.05/0.75 -Xc -Y0.6i
2626
gmt plot misfit.txt -Ct.cpt -Sc0.15c -Wfaint -i0,1,4
2727
printf "%2.2d" \$k | gmt text -F+cTR+jTR+f18p -Dj0.1i -Gwhite -W0.25p
2828
gmt colorbar -Ct.cpt -DJBC+e -Bxaf -By+l"misfit"

doc/examples/ex01/ex01.ps

-2.28 KB
Binary file not shown.

doc/examples/ex01/ex01.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
# GMT EXAMPLE 01
33
#
44
# Purpose: Make two contour maps based on the data in the file osu91a1f_16.nc
5-
# GMT modules: set, subplot, grdcontour, coast
5+
# GMT modules: subplot, grdcontour, coast
66
#
77
gmt begin ex01
8-
gmt set MAP_GRID_CROSS_SIZE_PRIMARY 0 FONT_ANNOT_PRIMARY 10p
98
gmt subplot begin 2x1 -A -M0.5c -Blrtb -Bafg -T"Low Order Geoid" -Fs16c/0 -Rg -JH16c
109
gmt coast -JH? -Glightbrown -Slightblue -c0,0
1110
gmt grdcontour @osu91a1f_16.nc -C10 -A50+f7p -Gd10c -Ln -Wcthinnest,- -Wathin,- -T+d8p/2p+l

doc/examples/ex02/ex02.ps

170 Bytes
Binary file not shown.

doc/examples/ex02/ex02.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ gmt begin ex02
1010
gmt subplot set 0,0 -Ce3c
1111
gmt grd2cpt @HI_topo_02.nc -Crelief -Z
1212
gmt grdimage @HI_topo_02.nc -I+a0
13-
gmt colorbar -DJRM+o1.5c/0+mc -I0.3 -Bx2+lTOPO -By+lkm
13+
gmt colorbar -DJRM+o1c/0+mc -I0.3 -Bx2+lTOPO -By+lkm
1414

1515
gmt subplot set 1,0 -Ce3c
1616
gmt makecpt -Crainbow -T-2/14/2
1717
gmt grdimage @HI_geoid_02.nc
18-
gmt colorbar -DJRM+o1.5c/0+e+mc -Bx2+lGEOID -By+lm
18+
gmt colorbar -DJRM+o1c/0+e+mc -Bx2+lGEOID -By+lm
1919
gmt subplot end
2020
gmt end show

doc/examples/ex03/ex03.ps

1.22 KB
Binary file not shown.

doc/examples/ex04/ex04.ps

1.3 KB
Binary file not shown.

doc/examples/ex04/ex04c.ps

1.45 KB
Binary file not shown.

doc/examples/ex05/ex05.ps

1.42 KB
Binary file not shown.

doc/examples/ex06/ex06.ps

1.27 KB
Binary file not shown.

doc/examples/ex07/ex07.ps

-1.62 KB
Binary file not shown.

doc/examples/ex08/ex08.ps

1.28 KB
Binary file not shown.

doc/examples/ex09/ex09.ps

14.8 KB
Binary file not shown.

doc/examples/ex09/ex09.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ gmt begin ex09
1010
gmt plot @ridge_09.txt -Wthicker
1111
gmt plot @fz_09.txt -Wthinner,-
1212
# Take label from segment header and plot near coordinates of last record of each track
13-
gmt convert -El @tracks_09.txt | gmt text -F+f10p,Helvetica-Bold+a50+jRM+h -D-4p
13+
gmt convert -El @tracks_09.txt | gmt text -F+f10p,Helvetica-Bold+a50+jRM+h -D-4p -Ghoneydew
1414
gmt end show

doc/examples/ex10/ex10.ps

1.17 KB
Binary file not shown.

doc/examples/ex11/ex11.ps

1.55 KB
Binary file not shown.

doc/examples/ex12/ex12.ps

1.57 KB
Binary file not shown.

doc/examples/ex13/ex13.ps

6.42 KB
Binary file not shown.

doc/examples/ex14/ex14.ps

1.47 KB
Binary file not shown.

doc/examples/ex15/ex15.ps

-49 Bytes
Binary file not shown.

doc/examples/ex16/ex16.ps

723 Bytes
Binary file not shown.

doc/examples/ex16/ex16.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Unix progs: rm
77
#
88
gmt begin ex16
9-
gmt set FONT_ANNOT_PRIMARY 9p FONT_TITLE 18p,Times-Roman
109
gmt subplot begin 2x2 -M0.1c -Fs8c/0 -R0/6.5/-0.2/6.5 -Jx1c -SCb -SRl+t -Bwesn -T"Gridding of Data"
1110
gmt surface @Table_5_11.txt -I0.2 -Graws0.nc
1211
gmt contour @Table_5_11.txt -C@ex_16.cpt -I -B+t"contour (triangulate)" -c0,0

doc/examples/ex17/ex17.ps

-686 Bytes
Binary file not shown.

doc/examples/ex18/ex18.ps

1.56 KB
Binary file not shown.

doc/examples/ex19/ex19.ps

1.27 KB
Binary file not shown.

doc/examples/ex19/ex19.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ gmt begin ex19
1616
gmt grdimage lon.nc -Clon.cpt -nl
1717
gmt coast -Q
1818
gmt coast -Dc -A5000 -Wthinnest
19-
echo "0 20 16TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
19+
echo "0 20 17TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
2020
echo "0 -10 GMT CONFERENCE" | gmt text -F+f32p,Helvetica-Bold,red=thinner
21-
echo "0 -30 Honolulu, Hawaii, April 1, 2020" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
21+
echo "0 -30 Honolulu, Hawaii, April 1, 2021" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
2222
# Then show example of color patterns and placing a PostScript image
2323
gmt coast -Dc -A5000 -Gp86+fred+byellow+r100 [email protected]+r100 -c1,0
2424
echo "0 30 SILLY USES OF" | gmt text -F+f32p,Helvetica-Bold,lightgreen=thinner
@@ -30,9 +30,9 @@ gmt begin ex19
3030
gmt grdimage lat.nc -Clat.cpt -nl
3131
gmt coast -Q
3232
gmt coast -Dc -A5000 -Wthinnest
33-
echo "0 20 16TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
33+
echo "0 20 17TH INTERNATIONAL" | gmt text -F+f32p,Helvetica-Bold,red=thinner
3434
echo "0 -10 GMT CONFERENCE" | gmt text -F+f32p,Helvetica-Bold,red=thinner
35-
echo "0 -30 Honolulu, Hawaii, April 1, 2020" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
35+
echo "0 -30 Honolulu, Hawaii, April 1, 2021" | gmt text -F+f18p,Helvetica-Bold,green=thinnest
3636
gmt subplot end
3737
gmt end show
3838
rm -f lat.nc lon.nc lat.cpt lon.cpt

doc/examples/ex20/ex20.ps

-389 Bytes
Binary file not shown.

doc/examples/ex21/ex21.ps

1.55 KB
Binary file not shown.

doc/examples/ex22/ex22.ps

928 Bytes
Binary file not shown.

doc/examples/ex22/ex22.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
# GMT EXAMPLE 22
33
#
44
# Purpose: Automatic map of last month of world-wide seismicity
5-
# GMT modules: set, coast, plot, legend
5+
# GMT modules: coast, plot, legend
66
# Unix progs: cat, sed, awk, wget|curl
77
#
88
gmt begin ex22
9-
gmt set FONT_ANNOT_PRIMARY 10p FONT_TITLE 18p FORMAT_GEO_MAP ddd:mm:ssF
10-
119
# Get the data (-s silently) from USGS using the curl
1210
# Hardwired here to the month of October, 2017
1311
# SITE="https://earthquake.usgs.gov/fdsnws/event/1/query.csv"
@@ -81,7 +79,7 @@ gmt begin ex22
8179

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

8684
rm neis.legend usgs_quakes_22.txt
8785
gmt end show

doc/examples/ex23/ex23.ps

1.28 KB
Binary file not shown.

doc/examples/ex24/ex24.ps

-219 Bytes
Binary file not shown.

doc/examples/ex25/ex25.ps

1.34 KB
Binary file not shown.

doc/examples/ex26/ex26.ps

1.02 KB
Binary file not shown.

doc/examples/ex27/ex27.ps

-425 Bytes
Binary file not shown.

doc/examples/ex28/ex28.ps

1.15 KB
Binary file not shown.

doc/examples/ex29/ex29.ps

1.37 KB
Binary file not shown.

doc/examples/ex30/ex30.ps

1.44 KB
Binary file not shown.

doc/examples/ex31/ex31.ps

769 Bytes
Binary file not shown.

doc/examples/ex33/ex33.ps

1.42 KB
Binary file not shown.

doc/examples/ex34/ex34.ps

1.46 KB
Binary file not shown.

doc/examples/ex34/ex34.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# GMT modules: set, coast, makecpt, grdimage, subplot
66
#
77
gmt begin ex34
8-
gmt set FORMAT_GEO_MAP dddF FONT_HEADING 24p
8+
gmt set FONT_HEADING 24p
99
gmt makecpt -Cglobe -T-5000/5000
1010
gmt subplot begin 2x1 -Fs11c/0 -M0.1c -JM11c -R-6/20/35/52 -SRl -SCb -Bwesn -T"Franco-Italian Union, 2042-45"
1111
gmt coast -EFR,IT+gP300/8 -Glightgray -c1,0

doc/examples/ex35/ex35.ps

1.3 KB
Binary file not shown.

doc/examples/ex36/ex36.ps

-2.92 KB
Binary file not shown.

doc/examples/ex37/ex37.ps

2.22 KB
Binary file not shown.

doc/examples/ex37/ex37.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gmt begin ex37
1111
# Prefix of two .nc files
1212
G=grav.V18.par.surf.1km.sq
1313
T=mb.par.surf.1km.sq
14-
gmt set FONT_TITLE 14p GMT_FFT kiss
14+
gmt set GMT_FFT kiss
1515

1616
gmt grdinfo @$T.nc -Ib > bbox
1717
scl=1.4e-5

doc/examples/ex38/ex38.ps

1.2 KB
Binary file not shown.

doc/examples/ex39/ex39.ps

1.52 KB
Binary file not shown.

doc/examples/ex40/ex40.ps

1.36 KB
Binary file not shown.

doc/examples/ex41/ex41.ps

-33.7 KB
Binary file not shown.

doc/examples/ex41/ex41.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# GMT modules: set, coast, legend, plot, makecpt
66
#
77
gmt begin ex41
8-
gmt set FONT_ANNOT_PRIMARY 12p FONT_LABEL 12p
8+
gmt set FONT_ANNOT_PRIMARY 12p,Helvetica FONT_LABEL 12p,Helvetica
99
gmt makecpt -Cred,orange,yellow,green,bisque,cyan,magenta,white,gray -T1/10/1 -N
1010
gmt coast -R130W/50W/8N/56N -JM14c -Glightgray -Sazure1 -A1000 -Wfaint
1111
gmt coast -EUS+glightyellow+pfaint -ECU+glightred+pfaint -EMX+glightgreen+pfaint -ECA+glightblue+pfaint

doc/examples/ex42/ex42.ps

-590 Bytes
Binary file not shown.

doc/examples/ex42/ex42.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
# GMT EXAMPLE 42
33
#
44
# Purpose: Illustrate Antarctica and stereographic projection
5-
# GMT modules: makecpt, grdimage, coast, legend, colorbar, text, plot
5+
# GMT modules: makecpt, grdimage, coast, legend, colorbar, set, text, plot
66
# Unix progs: [curl grdconvert]
77
#
88
gmt begin ex42
9-
gmt set FONT_ANNOT_PRIMARY 12p FONT_LABEL 12p PROJ_ELLIPSOID WGS-84 FORMAT_GEO_MAP dddF
9+
gmt set PROJ_ELLIPSOID WGS-84
1010
# Data obtained via website and converted to netCDF thus:
1111
# curl http://www.antarctica.ac.uk//bas_research/data/access/bedmap/download/bedelev.asc.gz
1212
# gunzip bedelev.asc.gz
1313
# grdconvert bedelev.asc BEDMAP_elevation.nc=ns -V
1414
gmt makecpt -Cearth -T-7000/4000
1515
gmt grdimage @BEDMAP_elevation.nc -Jx1:60000000 -Q
1616
gmt coast -R-180/180/-90/-60 -Js0/-90/-71/1:60000000 -Bafg -Di -W0.25p
17-
gmt colorbar -DJRM+w6.5c/0.5c+o1.5c/0+mc -F+p+i -Bxa1000+lELEVATION -By+lm
17+
gmt colorbar -DJRM+w6.5c/0.5c+o1c/0+mc -F+p+i -Bxa1000+lELEVATION -By+lm
1818
# GSHHG
1919
gmt coast -Glightblue -Sroyalblue2 -X5c -Y12c
2020
gmt coast -Glightbrown -A+ag -Bafg
21-
gmt legend -DjLM+w4c+jRM+o1c/0 -F+p+i <<- EOF
22-
H 18p,Times-Roman Legend
21+
gmt legend -DjLM+w3.5c+jRM+o1c/0 -F+p+i <<- EOF
22+
H 12 Legend
2323
D 0.25c 1p
24-
S 0.4c s 0.5c blue 0.25p 0.75c Ocean
25-
S 0.4c s 0.5c lightblue 0.25p 0.75c Ice front
26-
S 0.4c s 0.5c lightbrown 0.25p 0.75c Grounding line
24+
S 0.4c s 0.3c blue 0.25p 0.75c Ocean
25+
S 0.4c s 0.3c lightblue 0.25p 0.75c Ice front
26+
S 0.4c s 0.3c lightbrown 0.25p 0.75c Grounding line
2727
EOF
2828
# Fancy line
2929
gmt plot -R0/19/0/25 -Jx1c -B0 -W2p -X-6c -Y-13.5c <<- EOF

doc/examples/ex43/ex43.ps

1.4 KB
Binary file not shown.

doc/examples/ex44/ex44.ps

-15.1 KB
Binary file not shown.

doc/examples/ex45/ex45.ps

1.55 KB
Binary file not shown.

doc/examples/ex46/ex46.ps

-492 Bytes
Binary file not shown.

doc/examples/ex47/ex47.ps

1.6 KB
Binary file not shown.

doc/examples/ex48/ex48.ps

-5.61 KB
Binary file not shown.

doc/examples/ex49/ex49.ps

-667 Bytes
Binary file not shown.

doc/examples/ex49/ex49.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gmt begin ex49
1313
# Image depths with color-coded age contours
1414
gmt makecpt -Cabyss -T-7000/0 -H > z.cpt
1515
gmt makecpt -Chot -T0/100/10 -H > t.cpt
16-
gmt grdimage depth_pixel.nc -JM15c -Cz.cpt -B -BWSne --FORMAT_GEO_MAP=dddF
16+
gmt grdimage depth_pixel.nc -JM15c -Cz.cpt -B -BWSne --FORMAT_GEO_MAP=dddF --FONT_ANNOT_PRIMARY=12p
1717
gmt plot -W1p @ridge_49.txt
1818
gmt grdcontour age_pixel.nc -A+f14p -Ct.cpt -Wa0.1p+c -GL30W/22S/5E/13S
1919
gmt colorbar -Cz.cpt -DjTR+w5c/0.4c+h+o0.75c/0.4c -Baf+u" km" -W0.001 -F+p1p+gbeige
@@ -42,7 +42,7 @@ gmt begin ex49
4242
gmt plot ss.txt -W1p
4343
gmt plot -Ss0.4c -Gblue modal.txt -Ey+p1p,blue
4444
gmt plot -Ss0.1c -Gwhite modal.txt
45-
gmt basemap -R0/100/0/6.5 -JX15c/-10c -Bxaf+u" Myr" -Byaf+u" km" -BWsNe
45+
gmt basemap -R0/100/0/6.5 -JX15c/-10c -Bxaf+u" Myr" -Byaf+u" km" -BWsNe --FONT_ANNOT_PRIMARY=12p
4646
gmt legend -DjRT+w6.5c+o0.25c -F+p1p+gbeige+s <<- EOF
4747
S 0.5c - 0.9c - 4p,green 1c Parsons & Sclater (1977)
4848
S 0.5c - 0.9c - 4p,white 1c Stein & Stein (1992)

doc/examples/ex50/ex50.ps

1.58 KB
Binary file not shown.

doc/examples/ex50/ex50.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
gmt begin ex50
99
# Left column have all the PDFs
10-
gmt set FONT_ANNOT_PRIMARY 10p,Helvetica,black
1110
# Binomial distribution
1211
gmt math -T0/8/1 0.25 8 T BPDF = p.txt
1312
gmt plot -R-0.6/8.6/0/0.35 -JX7.5c/1.25c -Glightgreen p.txt -Sb0.8u -W0.5p -BWS -Bxa1 -Byaf

doc/examples/ex52/ex52.ps

-9.5 KB
Binary file not shown.

doc/rst/source/cookbook/features.rst

Lines changed: 67 additions & 0 deletions

0 commit comments

Comments
 (0)