Re: Adding labels to axis
Janosch Hoffmann <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <ac1131e6dbe747a8aeb58bb0ffa14bf9@SIXPR06MB336.apcprd06.prod.outlook.com> |
Hi all, here is the first part of the bash code I am using. The e in -Re is a new command added in GMT 5. It allows you to label the tick mark in one projection, while plotting the data in another projection. #!/bin/bash gmtset PS_MEDIA A4 FONT_LABEL 14 FONT_ANNOT_PRIMARY 8 MAP_FRAME_PEN 0.5p plotfile=map.ps project_size=1:23333333.333333333 x_min=500000 x_max=2350000 y_min=500000 y_max=2000000 x_pl=10 y_pl=9 width=0.1 dpi=i makecpt -Crainbow -T0/0.5/0.05 -DF0/0/0 -I > heights.cpt ###### psbasemap -Js0/-90/-71/$project_size -Re$x_min/$x_max/$y_min/$y_max -B10:"Rate Uncertainty":/4:"Campaign Method":WeNs -K -P -X2 -Y21 > $plotfile psclip all_basins_no_lines.gmt -Jx$project_size -R$x_min/$x_max/$y_min/$y_max -O -K -V >> $plotfile grdimage heatmap_error_scrgrs.grd -Cheights.cpt -Jx$project_size -R$x_min/$x_max/$y_min/$y_max -E$dpi -O -K -V >> $plotfile psclip -C -O -K >> $plotfile psclip all_basins_no_lines.gmt -Jx$project_size -R$x_min/$x_max/$y_min/$y_max -O -K -V >> $plotfile psxy all_basins_no_lines.gmt -Jx$project_size -R$x_min/$x_max/$y_min/$y_max -O -K -W$width -V >> $plotfile psxy rck00_polygon.gmt -Jx$project_size -R$x_min/$x_max/$y_min/$y_max -O -K -G1 -W0.01 >> $plotfile psclip -C -O -K >> $plotfile psbasemap -Js0/-90/-71/$project_size -Re$x_min/$x_max/$y_min/$y_max -B10g10/4g4 -O -K >> $plotfile ###### Cheers Janosch ________________________________________ From: World-Wide GMT Usage and Help Mailing List <[email protected]> on behalf of Eduardo A. Suárez <[email protected]> Sent: Sunday, 9 March 2014 2:33 PM To: [email protected] Subject: Re: [GMT-HELP] Adding labels to axis Hi Janosch, could you give us the values you are using instead of bash variables? It is impossible to us to reproduce your exact working situation without knowing that values! Meanwhile, -Js0/-90/-71/$project_size should trigger an error due to -71 as horizon In -Re the "e" doesn't exist as -R parameter; "g" and "d" are parameters, but both are used without x_min/xmax/y_min/y_max. Regards, Eduardo.- Quoting Janosch Hoffmann <[email protected]>: > Hi Gery and co, > > > I took your advice and added WENS, if I used a stereographic > projection (in metres) the axis labels show up: > > > psbasemap -Jx$project_size -R$x_min/$x_max/$y_min/$y_max > -B10g10:"Rate Uncertainty":/4g4:"Campaign Method":WeNs -O -K >> > $plotfile > > > however when I use the combined projection -Re they are no visible: > > > psbasemap -Js0/-90/-71/$project_size > -Re$x_min/$x_max/$y_min/$y_max -B10:"Rate Uncertainty":/4:"Campaign > Method":WeNs -O -K >> $plotfile > > > Also when I use WeNs, for the top line of code it removes the tick > mark number labels for east and south. Is there a way of keeping all > the tick mark number labels, like with WENS, but only have the axis > labels for WeNs? > > > Cheers > > > Janosch > > > ________________________________ > From: World-Wide GMT Usage and Help Mailing List > <[email protected]> on behalf of Gery . > <[email protected]> > Sent: Saturday, 8 March 2014 10:34 PM > To: [email protected] > Subject: Re: [GMT-HELP] Adding labels to axis > > Hi Janosch, > > You'd need to add wens at the end of -B, something like: > > -B10g10:"Rate Uncertainty":/4g4:"Campaign Method":WenS > > That would mean that the labels will appear W and S of your plot > (ie., upper case letters). For the lower case, it will plot the > ticks afaik. > > Hope this helps, > > Cheers, > > Gery > > Sent from my i386 > > On Mar 8, 2014, at 12:29, "Janosch Hoffmann" > <[email protected]<mailto:[email protected]>> > wrote: > > > Hi all, > > > I am trying to add labels to my axis. Here the is code where I add > the labels: > > > psbasemap -Js0/-90/-71/$project_size > -Re$x_min/$x_max/$y_min/$y_max -B10g10:"Rate > Uncertainty":/4g4:"Campaign Method": -O -K >> $plotfile > > > Everything else plots fine, except for no labels. It has worked in > the past, could have something to do with the new -Re option? > > > Cheers > > > Janosch Hoffmann > > To unsubscribe, send the message "signoff gmt-help" to > [email protected]<mailto:[email protected]> > > To unsubscribe, send the message "signoff gmt-help" to > [email protected] > -- Eduardo A. Suarez Facultad de Ciencias Astronómicas y Geofísicas - UNLP FCAG: (0221)-4236593 int. 172/Cel: (0221)-15-4557542/Casa: (0221)-4526589 ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. To unsubscribe, send the message "signoff gmt-help" to [email protected] To unsubscribe, send the message "signoff gmt-help" to [email protected]