@@ -106,19 +106,22 @@ The optional *annot_unit* indicates the unit of the *stride* and can be any of t
106
106
Note for geographic axes ** m** and ** s** instead mean arc minutes and arc seconds.
107
107
All entities that are language-specific are under control by [ GMT\_ LANGUAGE] ( http://docs.generic-mapping-tools.org/latest/gmt.conf.html#gmt-language ) .
108
108
109
- For custom annotations and intervals, let * intervals* be given as * custom= "intfile"* , where
109
+ For custom annotations and intervals, let * intervals* be given as ** custom** = * "intfile"* , where
110
110
* intfile* contains any number of records with * coord type* [ * label* ] . Here, * type* is one or more
111
111
letters from ** a** or ** i** , ** f** , and ** g** . For ** a** or ** i** you must supply a * label* that will
112
- be plotted at the * coord* location.
112
+ be plotted at the * coord* location. The ** custom** option can also be used giving it a NamedTuple
113
+ argument. For example ** xaxis=(custom=(pos=[ 1,2,3] , label=(: Aa , : Bb , : Cc )), angle=45)** (and we could have
114
+ used _ type_ , as described above, intead of _ label_ ). NOTE, the _ angle_ keyword can only be used on ` x ` axis.
113
115
114
116
A simpler way of controling the ticks and annotations with custom settings is to use the ** xticks** option
115
- (same for ** yticks** and ** zticks** ). Here, one give a tuple with annotations interval and labels. E.g.
116
- ** xticks=(1:5, [ "a", "b", "c", "d"] )** where first element is an AbstractArray and second an array or tuple of
117
+ (same for ** yticks** and ** zticks** ). Here, one give a tuple with labels, annotations interval, and angle of annotations.
118
+ Of these, only the _ labels_ is mandatory, and the angle (a single value) can only be used for ** xticks** . E.g.
119
+ ** xticks=(1:5, [ "a", "b", "c", "d"] , 90)** where first element is an AbstractArray and second an array or tuple of
117
120
strings or symbols. The more elaborate effect described above for the * custom* options is achieved here by
118
121
escaping the ** a** or ** i** , ** f** , and ** g** codes with a forward slash in a text string. Example:
119
122
** xticks=(1:5, [ "a", "f", "/ag e", "f", "/ag @~ p@~ "] )** . Here "/ag e" means annotate the third value with * e*
120
123
and add a grid line. These * x|y|zticks* options work only for the primary axes. To change the secondary use
121
- the * customtics * form. * E.g.* ** xaxis2=(customticks(...),)** . Note that the * ticks* keyword is already taken
124
+ the * customticks * form. * E.g.* ** xaxis2=(customticks(...),)** . Note that the * ticks* keyword is already taken
122
125
to control the ticks interval hence the need to use a different one (* customticks* ).
123
126
124
127
For non-geographical projections: Give negative scale or figure sizes to change the direction of increasing
0 commit comments