update plot size
This commit is contained in:
parent
b442ade8b0
commit
3fe4e4a41a
@ -119,9 +119,9 @@ else
|
|||||||
if [[ $plotgrad == 1 ]]; then
|
if [[ $plotgrad == 1 ]]; then
|
||||||
gradfile=usergradient.nc
|
gradfile=usergradient.nc
|
||||||
gmt grdgradient ${data} -G${gradfile} -Nt -A0/45
|
gmt grdgradient ${data} -G${gradfile} -Nt -A0/45
|
||||||
gmt grdimage ${data} -R${range} -C${cptfile} -I${gradfile} -Bx${axistick[0]}g+l"${labels[0]}" -By${axistick[1]}g+l"${labels[1]}" -JL${plot_para[0]}/${plot_para[1]}/${plot_para[2]}/${plot_para[3]}/2i -K -P > $psfile
|
gmt grdimage ${data} -R${range} -C${cptfile} -I${gradfile} -Bx${axistick[0]}g+l"${labels[0]}" -By${axistick[1]}g+l"${labels[1]}" -JL${plot_para[0]}/${plot_para[1]}/${plot_para[2]}/${plot_para[3]}/1.5i -K -P > $psfile
|
||||||
else
|
else
|
||||||
gmt grdimage ${data} -R${range} -C${cptfile} -Bx${axistick[0]}g+l"${labels[0]}" -By${axistick[1]}g+l"${labels[1]}" -JL${plot_para[0]}/${plot_para[1]}/${plot_para[2]}/${plot_para[3]}/2i -K -P > $psfile
|
gmt grdimage ${data} -R${range} -C${cptfile} -Bx${axistick[0]}g+l"${labels[0]}" -By${axistick[1]}g+l"${labels[1]}" -JL${plot_para[0]}/${plot_para[1]}/${plot_para[2]}/${plot_para[3]}/1.5i -K -P > $psfile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $coastline == 1 ]]; then
|
if [[ $coastline == 1 ]]; then
|
||||||
@ -129,7 +129,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#-C${cptfile}+Uk 使用km(色标单位除1000)
|
#-C${cptfile}+Uk 使用km(色标单位除1000)
|
||||||
gmt psscale -Dx0.4i/-0.3i+w1.2i/0.06i+h -C${cptfile} -Bx${bartick} -By+l${unit} -O >> $psfile
|
gmt psscale -Dx0.125i/-0.3i+w1.2i/0.06i+h -C${cptfile} -Bx${bartick} -By+l${unit} -O >> $psfile
|
||||||
gmt psconvert $psfile -A -TEG -E300
|
gmt psconvert $psfile -A -TEG -E300
|
||||||
# 删除临时文件 使用linux终端rm命令
|
# 删除临时文件 使用linux终端rm命令
|
||||||
rm $psfile gmt.history gmt.conf
|
rm $psfile gmt.history gmt.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user