Skip to content

Commit

Permalink
Update example_02
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jun 3, 2017
1 parent 165766a commit f20e7ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/gallery.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ function ex02(g_root_dir, out_path)
g_cpt = gmt("makecpt -Crainbow -T-2/14/2")
gmt("grdimage " * d_path * "HI_geoid2.nc -R160/20/220/30r -JOc190/25.5/292/69/4.5i -C" *
" -E50 -K -P -B10 -X1.5i -Y1.25i > " * ps, g_cpt)
gmt("psscale -DjRM+o0.6i/0+jLM+w2.88i/0.4i+mc+e -R -J -O -K -Bx2+lGEOID -By+lm >> " * ps, g_cpt)
gmt("psscale -DJRM+o0.6i/0+e+mc -R -J -O -K -Bx2+lGEOID -By+lm >> " * ps, g_cpt)
t_cpt = gmt("grd2cpt " * d_path * "HI_topo2.nc -Crelief -Z")
GHI_topo2_int = gmt("grdgradient " * d_path * "HI_topo2.nc -A0 -Nt")
gmt("grdimage " * d_path * "HI_topo2.nc -I -R -J -B+t\"H@#awaiian@# T@#opo and @#G@#eoid@#\"" *
" -B10 -E50 -O -K -C -Y4.5i --MAP_TITLE_OFFSET=0.5i >> " * ps, GHI_topo2_int, t_cpt)
gmt("psscale -DjRM+o0.6i/0+jLM+w2.88i/0.4i+mc -R -J -O -K -I0.3 -Bx2+lTOPO -By+lkm >> " * ps, t_cpt)
gmt("psscale -DJRM+o0.6i/0+mc -R -J -O -K -I0.3 -Bx2+lTOPO -By+lkm >> " * ps, t_cpt)
gmt("pstext -R0/8.5/0/11 -Jx1i -F+f30p,Helvetica-Bold+jCB -O -N -Y-4.5i >> " * ps,
Any["-0.4 7.5 a)", "-0.4 3.0 b)"])
rm("gmt.conf")
Expand Down Expand Up @@ -548,7 +548,7 @@ function ex12(g_root_dir, out_path)

# Then contour the data and draw triangles using dashed pen; use "gmt gmtinfo" and "gmt makecpt" to make a
# color palette (.cpt) file
T = gmt("gmtinfo -T25/2 " * d_path * "table_5.11")
T = gmt("gmtinfo -T25+c2 " * d_path * "table_5.11")
topo_cpt = gmt("makecpt -Cjet " * T[1].text[1])
gmt("pscontour -R -J " * d_path * "table_5.11 -B2f1 -BWSne -Wthin -C -Lthinnest,-" *
" -Gd1i -X-3.25i -Y-3.65i -O -K >> " * ps, topo_cpt)
Expand Down

0 comments on commit f20e7ee

Please sign in to comment.