@@ -70,9 +70,10 @@ def _preprocess(self, **kwargs): # pylint: disable=no-self-use
70
70
U = "timestamp" ,
71
71
X = "xshift" ,
72
72
Y = "yshift" ,
73
+ p = "perspective" ,
73
74
t = "transparency" ,
74
75
)
75
- @kwargs_to_strings (R = "sequence" )
76
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
76
77
def coast (self , ** kwargs ):
77
78
"""
78
79
Plot continents, shorelines, rivers, and borders on maps
@@ -132,6 +133,7 @@ def coast(self, **kwargs):
132
133
``'[level/]pen'``
133
134
Draw shorelines [Default is no shorelines]. Append pen attributes.
134
135
{XY}
136
+ {p}
135
137
{t}
136
138
137
139
"""
@@ -151,9 +153,10 @@ def coast(self, **kwargs):
151
153
W = "scale" ,
152
154
X = "xshift" ,
153
155
Y = "yshift" ,
156
+ p = "perspective" ,
154
157
t = "transparency" ,
155
158
)
156
- @kwargs_to_strings (R = "sequence" , G = "sequence" )
159
+ @kwargs_to_strings (R = "sequence" , G = "sequence" , p = "sequence" )
157
160
def colorbar (self , ** kwargs ):
158
161
"""
159
162
Plot a gray or color scale-bar on maps.
@@ -214,6 +217,7 @@ def colorbar(self, **kwargs):
214
217
Multiply all z-values in the CPT by the provided scale. By default
215
218
the CPT is used as is.
216
219
{XY}
220
+ {p}
217
221
{t}
218
222
219
223
"""
@@ -237,9 +241,10 @@ def colorbar(self, **kwargs):
237
241
l = "label" ,
238
242
X = "xshift" ,
239
243
Y = "yshift" ,
244
+ p = "perspective" ,
240
245
t = "transparency" ,
241
246
)
242
- @kwargs_to_strings (R = "sequence" , L = "sequence" , A = "sequence_plus" )
247
+ @kwargs_to_strings (R = "sequence" , L = "sequence" , A = "sequence_plus" , p = "sequence" )
243
248
def grdcontour (self , grid , ** kwargs ):
244
249
"""
245
250
Convert grids or images to contours and plot them on maps
@@ -295,6 +300,7 @@ def grdcontour(self, grid, **kwargs):
295
300
to be of the format [*annotcontlabel*][/*contlabel*]. If either
296
301
label contains a slash (/) character then use ``|`` as the
297
302
separator for the two labels instead.
303
+ {p}
298
304
{t}
299
305
"""
300
306
kwargs = self ._preprocess (** kwargs )
@@ -320,10 +326,11 @@ def grdcontour(self, grid, **kwargs):
320
326
C = "cmap" ,
321
327
X = "xshift" ,
322
328
Y = "yshift" ,
329
+ p = "perspective" ,
323
330
t = "transparency" ,
324
331
x = "cores" ,
325
332
)
326
- @kwargs_to_strings (R = "sequence" )
333
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
327
334
def grdimage (self , grid , ** kwargs ):
328
335
"""
329
336
Project grids or images and plot them on maps.
@@ -339,6 +346,7 @@ def grdimage(self, grid, **kwargs):
339
346
grid : str or xarray.DataArray
340
347
The file name of the input grid or the grid loaded as a DataArray.
341
348
{XY}
349
+ {p}
342
350
{t}
343
351
{x}
344
352
@@ -370,10 +378,10 @@ def grdimage(self, grid, **kwargs):
370
378
Wc = "contourpen" ,
371
379
Wm = "meshpen" ,
372
380
Wf = "facadepen" ,
373
- p = "perspective" ,
374
381
I = "shading" ,
375
382
X = "xshift" ,
376
383
Y = "yshift" ,
384
+ p = "perspective" ,
377
385
t = "transparency" ,
378
386
)
379
387
@kwargs_to_strings (R = "sequence" , p = "sequence" )
@@ -438,10 +446,6 @@ def grdview(self, grid, **kwargs):
438
446
Sets the pen attributes used for the facade. You must also select
439
447
-N for the facade outline to be drawn.
440
448
441
- perspective : list or str
442
- ``'[x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]'``.
443
- Select perspective view.
444
-
445
449
shading : str
446
450
Provide the name of a grid file with intensities in the (-1,+1)
447
451
range, or a constant intensity to apply everywhere (affects the
@@ -452,6 +456,7 @@ def grdview(self, grid, **kwargs):
452
456
``+d`` to select the default arguments (``+a-45+nt1+m0``).
453
457
454
458
{XY}
459
+ {p}
455
460
{t}
456
461
457
462
"""
@@ -495,9 +500,10 @@ def grdview(self, grid, **kwargs):
495
500
U = "timestamp" ,
496
501
X = "xshift" ,
497
502
Y = "yshift" ,
503
+ p = "perspective" ,
498
504
t = "transparency" ,
499
505
)
500
- @kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
506
+ @kwargs_to_strings (R = "sequence" , i = "sequence_comma" , p = "sequence" )
501
507
def plot (self , x = None , y = None , data = None , sizes = None , direction = None , ** kwargs ):
502
508
"""
503
509
Plot lines, polygons, and symbols on maps.
@@ -567,6 +573,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
567
573
label : str
568
574
Add a legend entry for the symbol or line being plotted.
569
575
576
+ {p}
570
577
{t}
571
578
"""
572
579
kwargs = self ._preprocess (** kwargs )
@@ -619,9 +626,10 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
619
626
C = "levels" ,
620
627
X = "xshift" ,
621
628
Y = "yshift" ,
629
+ p = "perspective" ,
622
630
t = "transparency" ,
623
631
)
624
- @kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
632
+ @kwargs_to_strings (R = "sequence" , i = "sequence_comma" , p = "sequence" )
625
633
def contour (self , x = None , y = None , z = None , data = None , ** kwargs ):
626
634
"""
627
635
Contour table data by direct triangulation.
@@ -678,6 +686,7 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
678
686
label contains a slash (/) character then use ``|`` as the
679
687
separator for the two labels instead.
680
688
{XY}
689
+ {p}
681
690
{t}
682
691
683
692
"""
@@ -711,9 +720,10 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
711
720
U = "timestamp" ,
712
721
X = "xshift" ,
713
722
Y = "yshift" ,
723
+ p = "perspective" ,
714
724
t = "transparency" ,
715
725
)
716
- @kwargs_to_strings (R = "sequence" )
726
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
717
727
def basemap (self , ** kwargs ):
718
728
"""
719
729
Produce a basemap for the figure.
@@ -746,6 +756,7 @@ def basemap(self, **kwargs):
746
756
reference and anchor points
747
757
{U}
748
758
{XY}
759
+ {p}
749
760
{t}
750
761
751
762
"""
@@ -764,9 +775,10 @@ def basemap(self, **kwargs):
764
775
F = "box" ,
765
776
X = "xshift" ,
766
777
Y = "yshift" ,
778
+ p = "perspective" ,
767
779
t = "transparency" ,
768
780
)
769
- @kwargs_to_strings (R = "sequence" )
781
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
770
782
def logo (self , ** kwargs ):
771
783
"""
772
784
Place the GMT graphics logo on a map.
@@ -792,6 +804,7 @@ def logo(self, **kwargs):
792
804
GMT logo.
793
805
{U}
794
806
{XY}
807
+ {p}
795
808
{t}
796
809
797
810
"""
@@ -810,9 +823,10 @@ def logo(self, **kwargs):
810
823
M = "monochrome" ,
811
824
X = "xshift" ,
812
825
Y = "yshift" ,
826
+ p = "perspective" ,
813
827
t = "transparency" ,
814
828
)
815
- @kwargs_to_strings (R = "sequence" )
829
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
816
830
def image (self , imagefile , ** kwargs ):
817
831
"""
818
832
Place images or EPS files on maps.
@@ -846,6 +860,7 @@ def image(self, imagefile, **kwargs):
846
860
Convert color image to monochrome grayshades using the (television)
847
861
YIQ-transformation.
848
862
{XY}
863
+ {p}
849
864
{t}
850
865
"""
851
866
kwargs = self ._preprocess (** kwargs )
@@ -861,9 +876,10 @@ def image(self, imagefile, **kwargs):
861
876
F = "box" ,
862
877
X = "xshift" ,
863
878
Y = "yshift" ,
879
+ p = "perspective" ,
864
880
t = "transparency" ,
865
881
)
866
- @kwargs_to_strings (R = "sequence" )
882
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
867
883
def legend (self , spec = None , position = "JTR+jTR+o0.2c" , box = "+gwhite+p1p" , ** kwargs ):
868
884
"""
869
885
Plot legends on maps.
@@ -898,6 +914,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
898
914
default, uses '+gwhite+p1p' which draws a box around the legend
899
915
using a 1 point black pen and adds a white background.
900
916
{XY}
917
+ {p}
901
918
{t}
902
919
"""
903
920
kwargs = self ._preprocess (** kwargs )
@@ -929,6 +946,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
929
946
W = "pen" ,
930
947
X = "xshift" ,
931
948
Y = "yshift" ,
949
+ p = "perspective" ,
932
950
t = "transparency" ,
933
951
)
934
952
@kwargs_to_strings (
@@ -937,6 +955,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
937
955
angle = "sequence_comma" ,
938
956
font = "sequence_comma" ,
939
957
justify = "sequence_comma" ,
958
+ p = "sequence" ,
940
959
)
941
960
def text (
942
961
self ,
@@ -1036,6 +1055,7 @@ def text(
1036
1055
(see *clearance*) [Default is width = default, color = black,
1037
1056
style = solid].
1038
1057
{XY}
1058
+ {p}
1039
1059
{t}
1040
1060
"""
1041
1061
kwargs = self ._preprocess (** kwargs )
@@ -1093,9 +1113,10 @@ def text(
1093
1113
C = "offset" ,
1094
1114
X = "xshift" ,
1095
1115
Y = "yshift" ,
1116
+ p = "perspective" ,
1096
1117
t = "transparency" ,
1097
1118
)
1098
- @kwargs_to_strings (R = "sequence" )
1119
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
1099
1120
def meca (
1100
1121
self ,
1101
1122
spec ,
@@ -1191,6 +1212,7 @@ def meca(
1191
1212
{R}
1192
1213
{B}
1193
1214
{XY}
1215
+ {p}
1194
1216
{t}
1195
1217
"""
1196
1218
0 commit comments