@@ -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 )
@@ -329,10 +335,11 @@ def grdcontour(self, grid, **kwargs):
329
335
X = "xshift" ,
330
336
Y = "yshift" ,
331
337
n = "interpolation" ,
338
+ p = "perspective" ,
332
339
t = "transparency" ,
333
340
x = "cores" ,
334
341
)
335
- @kwargs_to_strings (R = "sequence" )
342
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
336
343
def grdimage (self , grid , ** kwargs ):
337
344
"""
338
345
Project and plot grids or images.
@@ -448,6 +455,7 @@ def grdimage(self, grid, **kwargs):
448
455
{V}
449
456
{XY}
450
457
{n}
458
+ {p}
451
459
{t}
452
460
{x}
453
461
@@ -479,10 +487,10 @@ def grdimage(self, grid, **kwargs):
479
487
Wc = "contourpen" ,
480
488
Wm = "meshpen" ,
481
489
Wf = "facadepen" ,
482
- p = "perspective" ,
483
490
I = "shading" ,
484
491
X = "xshift" ,
485
492
Y = "yshift" ,
493
+ p = "perspective" ,
486
494
t = "transparency" ,
487
495
)
488
496
@kwargs_to_strings (R = "sequence" , p = "sequence" )
@@ -547,10 +555,6 @@ def grdview(self, grid, **kwargs):
547
555
Sets the pen attributes used for the facade. You must also select
548
556
-N for the facade outline to be drawn.
549
557
550
- perspective : list or str
551
- ``'[x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]'``.
552
- Select perspective view.
553
-
554
558
shading : str
555
559
Provide the name of a grid file with intensities in the (-1,+1)
556
560
range, or a constant intensity to apply everywhere (affects the
@@ -561,6 +565,7 @@ def grdview(self, grid, **kwargs):
561
565
``+d`` to select the default arguments (``+a-45+nt1+m0``).
562
566
563
567
{XY}
568
+ {p}
564
569
{t}
565
570
566
571
"""
@@ -604,9 +609,10 @@ def grdview(self, grid, **kwargs):
604
609
U = "timestamp" ,
605
610
X = "xshift" ,
606
611
Y = "yshift" ,
612
+ p = "perspective" ,
607
613
t = "transparency" ,
608
614
)
609
- @kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
615
+ @kwargs_to_strings (R = "sequence" , i = "sequence_comma" , p = "sequence" )
610
616
def plot (self , x = None , y = None , data = None , sizes = None , direction = None , ** kwargs ):
611
617
"""
612
618
Plot lines, polygons, and symbols on maps.
@@ -676,6 +682,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
676
682
label : str
677
683
Add a legend entry for the symbol or line being plotted.
678
684
685
+ {p}
679
686
{t}
680
687
"""
681
688
kwargs = self ._preprocess (** kwargs )
@@ -728,9 +735,10 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
728
735
C = "levels" ,
729
736
X = "xshift" ,
730
737
Y = "yshift" ,
738
+ p = "perspective" ,
731
739
t = "transparency" ,
732
740
)
733
- @kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
741
+ @kwargs_to_strings (R = "sequence" , i = "sequence_comma" , p = "sequence" )
734
742
def contour (self , x = None , y = None , z = None , data = None , ** kwargs ):
735
743
"""
736
744
Contour table data by direct triangulation.
@@ -787,6 +795,7 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
787
795
label contains a slash (/) character then use ``|`` as the
788
796
separator for the two labels instead.
789
797
{XY}
798
+ {p}
790
799
{t}
791
800
792
801
"""
@@ -820,9 +829,10 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
820
829
U = "timestamp" ,
821
830
X = "xshift" ,
822
831
Y = "yshift" ,
832
+ p = "perspective" ,
823
833
t = "transparency" ,
824
834
)
825
- @kwargs_to_strings (R = "sequence" )
835
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
826
836
def basemap (self , ** kwargs ):
827
837
"""
828
838
Produce a basemap for the figure.
@@ -855,6 +865,7 @@ def basemap(self, **kwargs):
855
865
reference and anchor points
856
866
{U}
857
867
{XY}
868
+ {p}
858
869
{t}
859
870
860
871
"""
@@ -873,9 +884,10 @@ def basemap(self, **kwargs):
873
884
F = "box" ,
874
885
X = "xshift" ,
875
886
Y = "yshift" ,
887
+ p = "perspective" ,
876
888
t = "transparency" ,
877
889
)
878
- @kwargs_to_strings (R = "sequence" )
890
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
879
891
def logo (self , ** kwargs ):
880
892
"""
881
893
Place the GMT graphics logo on a map.
@@ -901,6 +913,7 @@ def logo(self, **kwargs):
901
913
GMT logo.
902
914
{U}
903
915
{XY}
916
+ {p}
904
917
{t}
905
918
906
919
"""
@@ -919,9 +932,10 @@ def logo(self, **kwargs):
919
932
M = "monochrome" ,
920
933
X = "xshift" ,
921
934
Y = "yshift" ,
935
+ p = "perspective" ,
922
936
t = "transparency" ,
923
937
)
924
- @kwargs_to_strings (R = "sequence" )
938
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
925
939
def image (self , imagefile , ** kwargs ):
926
940
"""
927
941
Place images or EPS files on maps.
@@ -955,6 +969,7 @@ def image(self, imagefile, **kwargs):
955
969
Convert color image to monochrome grayshades using the (television)
956
970
YIQ-transformation.
957
971
{XY}
972
+ {p}
958
973
{t}
959
974
"""
960
975
kwargs = self ._preprocess (** kwargs )
@@ -970,9 +985,10 @@ def image(self, imagefile, **kwargs):
970
985
F = "box" ,
971
986
X = "xshift" ,
972
987
Y = "yshift" ,
988
+ p = "perspective" ,
973
989
t = "transparency" ,
974
990
)
975
- @kwargs_to_strings (R = "sequence" )
991
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
976
992
def legend (self , spec = None , position = "JTR+jTR+o0.2c" , box = "+gwhite+p1p" , ** kwargs ):
977
993
"""
978
994
Plot legends on maps.
@@ -1007,6 +1023,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
1007
1023
default, uses '+gwhite+p1p' which draws a box around the legend
1008
1024
using a 1 point black pen and adds a white background.
1009
1025
{XY}
1026
+ {p}
1010
1027
{t}
1011
1028
"""
1012
1029
kwargs = self ._preprocess (** kwargs )
@@ -1038,6 +1055,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
1038
1055
W = "pen" ,
1039
1056
X = "xshift" ,
1040
1057
Y = "yshift" ,
1058
+ p = "perspective" ,
1041
1059
t = "transparency" ,
1042
1060
)
1043
1061
@kwargs_to_strings (
@@ -1046,6 +1064,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
1046
1064
angle = "sequence_comma" ,
1047
1065
font = "sequence_comma" ,
1048
1066
justify = "sequence_comma" ,
1067
+ p = "sequence" ,
1049
1068
)
1050
1069
def text (
1051
1070
self ,
@@ -1145,6 +1164,7 @@ def text(
1145
1164
(see *clearance*) [Default is width = default, color = black,
1146
1165
style = solid].
1147
1166
{XY}
1167
+ {p}
1148
1168
{t}
1149
1169
"""
1150
1170
kwargs = self ._preprocess (** kwargs )
@@ -1202,9 +1222,10 @@ def text(
1202
1222
C = "offset" ,
1203
1223
X = "xshift" ,
1204
1224
Y = "yshift" ,
1225
+ p = "perspective" ,
1205
1226
t = "transparency" ,
1206
1227
)
1207
- @kwargs_to_strings (R = "sequence" )
1228
+ @kwargs_to_strings (R = "sequence" , p = "sequence" )
1208
1229
def meca (
1209
1230
self ,
1210
1231
spec ,
@@ -1300,6 +1321,7 @@ def meca(
1300
1321
{R}
1301
1322
{B}
1302
1323
{XY}
1324
+ {p}
1303
1325
{t}
1304
1326
"""
1305
1327
0 commit comments