@@ -68,6 +68,8 @@ def _preprocess(self, **kwargs): # pylint: disable=no-self-use
68
68
G = "land" ,
69
69
S = "water" ,
70
70
U = "timestamp" ,
71
+ X = "xshift" ,
72
+ Y = "yshift" ,
71
73
t = "transparency" ,
72
74
)
73
75
@kwargs_to_strings (R = "sequence" )
@@ -129,6 +131,7 @@ def coast(self, **kwargs):
129
131
shorelines : str
130
132
``'[level/]pen'``
131
133
Draw shorelines [Default is no shorelines]. Append pen attributes.
134
+ {XY}
132
135
{t}
133
136
134
137
"""
@@ -146,6 +149,8 @@ def coast(self, **kwargs):
146
149
F = "box" ,
147
150
G = "truncate" ,
148
151
W = "scale" ,
152
+ X = "xshift" ,
153
+ Y = "yshift" ,
149
154
t = "transparency" ,
150
155
)
151
156
@kwargs_to_strings (R = "sequence" , G = "sequence" )
@@ -208,6 +213,7 @@ def colorbar(self, **kwargs):
208
213
scale : float
209
214
Multiply all z-values in the CPT by the provided scale. By default
210
215
the CPT is used as is.
216
+ {XY}
211
217
{t}
212
218
213
219
"""
@@ -229,6 +235,8 @@ def colorbar(self, **kwargs):
229
235
U = "timestamp" ,
230
236
W = "pen" ,
231
237
l = "label" ,
238
+ X = "xshift" ,
239
+ Y = "yshift" ,
232
240
t = "transparency" ,
233
241
)
234
242
@kwargs_to_strings (R = "sequence" , L = "sequence" , A = "sequence_plus" )
@@ -279,6 +287,7 @@ def grdcontour(self, grid, **kwargs):
279
287
{G}
280
288
{U}
281
289
{W}
290
+ {XY}
282
291
label : str
283
292
Add a legend entry for the contour being plotted. Normally, the
284
293
annotated contour is selected for the legend. You can select the
@@ -309,6 +318,8 @@ def grdcontour(self, grid, **kwargs):
309
318
B = "frame" ,
310
319
I = "shading" ,
311
320
C = "cmap" ,
321
+ X = "xshift" ,
322
+ Y = "yshift" ,
312
323
t = "transparency" ,
313
324
x = "cores" ,
314
325
)
@@ -327,6 +338,7 @@ def grdimage(self, grid, **kwargs):
327
338
----------
328
339
grid : str or xarray.DataArray
329
340
The file name of the input grid or the grid loaded as a DataArray.
341
+ {XY}
330
342
{t}
331
343
{x}
332
344
@@ -360,6 +372,8 @@ def grdimage(self, grid, **kwargs):
360
372
Wf = "facadepen" ,
361
373
p = "perspective" ,
362
374
I = "shading" ,
375
+ X = "xshift" ,
376
+ Y = "yshift" ,
363
377
t = "transparency" ,
364
378
)
365
379
@kwargs_to_strings (R = "sequence" , p = "sequence" )
@@ -437,6 +451,7 @@ def grdview(self, grid, **kwargs):
437
451
intensity, and ambient arguments for that module, or just give
438
452
``+d`` to select the default arguments (``+a-45+nt1+m0``).
439
453
454
+ {XY}
440
455
{t}
441
456
442
457
"""
@@ -478,6 +493,8 @@ def grdview(self, grid, **kwargs):
478
493
l = "label" ,
479
494
C = "cmap" ,
480
495
U = "timestamp" ,
496
+ X = "xshift" ,
497
+ Y = "yshift" ,
481
498
t = "transparency" ,
482
499
)
483
500
@kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
@@ -546,6 +563,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
546
563
quoted lines).
547
564
{W}
548
565
{U}
566
+ {XY}
549
567
label : str
550
568
Add a legend entry for the symbol or line being plotted.
551
569
@@ -599,6 +617,8 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
599
617
i = "columns" ,
600
618
l = "label" ,
601
619
C = "levels" ,
620
+ X = "xshift" ,
621
+ Y = "yshift" ,
602
622
t = "transparency" ,
603
623
)
604
624
@kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
@@ -657,6 +677,7 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
657
677
to be of the format [*annotcontlabel*][/*contlabel*]. If either
658
678
label contains a slash (/) character then use ``|`` as the
659
679
separator for the two labels instead.
680
+ {XY}
660
681
{t}
661
682
662
683
"""
@@ -688,6 +709,8 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
688
709
Td = "rose" ,
689
710
Tm = "compass" ,
690
711
U = "timestamp" ,
712
+ X = "xshift" ,
713
+ Y = "yshift" ,
691
714
t = "transparency" ,
692
715
)
693
716
@kwargs_to_strings (R = "sequence" )
@@ -722,6 +745,7 @@ def basemap(self, **kwargs):
722
745
Draws a map magnetic rose on the map at the location defined by the
723
746
reference and anchor points
724
747
{U}
748
+ {XY}
725
749
{t}
726
750
727
751
"""
@@ -738,6 +762,8 @@ def basemap(self, **kwargs):
738
762
U = "timestamp" ,
739
763
D = "position" ,
740
764
F = "box" ,
765
+ X = "xshift" ,
766
+ Y = "yshift" ,
741
767
t = "transparency" ,
742
768
)
743
769
@kwargs_to_strings (R = "sequence" )
@@ -765,6 +791,7 @@ def logo(self, **kwargs):
765
791
Without further options, draws a rectangular border around the
766
792
GMT logo.
767
793
{U}
794
+ {XY}
768
795
{t}
769
796
770
797
"""
@@ -781,6 +808,8 @@ def logo(self, **kwargs):
781
808
D = "position" ,
782
809
F = "box" ,
783
810
M = "monochrome" ,
811
+ X = "xshift" ,
812
+ Y = "yshift" ,
784
813
t = "transparency" ,
785
814
)
786
815
@kwargs_to_strings (R = "sequence" )
@@ -816,6 +845,7 @@ def image(self, imagefile, **kwargs):
816
845
monochrome : bool
817
846
Convert color image to monochrome grayshades using the (television)
818
847
YIQ-transformation.
848
+ {XY}
819
849
{t}
820
850
"""
821
851
kwargs = self ._preprocess (** kwargs )
@@ -829,6 +859,8 @@ def image(self, imagefile, **kwargs):
829
859
J = "projection" ,
830
860
D = "position" ,
831
861
F = "box" ,
862
+ X = "xshift" ,
863
+ Y = "yshift" ,
832
864
t = "transparency" ,
833
865
)
834
866
@kwargs_to_strings (R = "sequence" )
@@ -865,6 +897,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
865
897
rectangular border around the legend using **MAP_FRAME_PEN**. By
866
898
default, uses '+gwhite+p1p' which draws a box around the legend
867
899
using a 1 point black pen and adds a white background.
900
+ {XY}
868
901
{t}
869
902
"""
870
903
kwargs = self ._preprocess (** kwargs )
@@ -894,6 +927,8 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
894
927
D = "offset" ,
895
928
G = "fill" ,
896
929
W = "pen" ,
930
+ X = "xshift" ,
931
+ Y = "yshift" ,
897
932
t = "transparency" ,
898
933
)
899
934
@kwargs_to_strings (
@@ -1000,6 +1035,7 @@ def text(
1000
1035
Sets the pen used to draw a rectangle around the text string
1001
1036
(see *clearance*) [Default is width = default, color = black,
1002
1037
style = solid].
1038
+ {XY}
1003
1039
{t}
1004
1040
"""
1005
1041
kwargs = self ._preprocess (** kwargs )
@@ -1055,6 +1091,8 @@ def text(
1055
1091
J = "projection" ,
1056
1092
B = "frame" ,
1057
1093
C = "offset" ,
1094
+ X = "xshift" ,
1095
+ Y = "yshift" ,
1058
1096
t = "transparency" ,
1059
1097
)
1060
1098
@kwargs_to_strings (R = "sequence" )
@@ -1152,6 +1190,7 @@ def meca(
1152
1190
{J}
1153
1191
{R}
1154
1192
{B}
1193
+ {XY}
1155
1194
{t}
1156
1195
"""
1157
1196
0 commit comments