@@ -68,6 +68,7 @@ def _preprocess(self, **kwargs): # pylint: disable=no-self-use
68
68
G = "land" ,
69
69
S = "water" ,
70
70
U = "timestamp" ,
71
+ t = "transparency" ,
71
72
)
72
73
@kwargs_to_strings (R = "sequence" )
73
74
def coast (self , ** kwargs ):
@@ -128,6 +129,7 @@ def coast(self, **kwargs):
128
129
shorelines : str
129
130
``'[level/]pen'``
130
131
Draw shorelines [Default is no shorelines]. Append pen attributes.
132
+ {t}
131
133
132
134
"""
133
135
kwargs = self ._preprocess (** kwargs )
@@ -144,6 +146,7 @@ def coast(self, **kwargs):
144
146
F = "box" ,
145
147
G = "truncate" ,
146
148
W = "scale" ,
149
+ t = "transparency" ,
147
150
)
148
151
@kwargs_to_strings (R = "sequence" , G = "sequence" )
149
152
def colorbar (self , ** kwargs ):
@@ -205,6 +208,7 @@ def colorbar(self, **kwargs):
205
208
scale : float
206
209
Multiply all z-values in the CPT by the provided scale. By default
207
210
the CPT is used as is.
211
+ {t}
208
212
209
213
"""
210
214
kwargs = self ._preprocess (** kwargs )
@@ -225,6 +229,7 @@ def colorbar(self, **kwargs):
225
229
U = "timestamp" ,
226
230
W = "pen" ,
227
231
l = "label" ,
232
+ t = "transparency" ,
228
233
)
229
234
@kwargs_to_strings (R = "sequence" , L = "sequence" , A = "sequence_plus" )
230
235
def grdcontour (self , grid , ** kwargs ):
@@ -281,6 +286,7 @@ def grdcontour(self, grid, **kwargs):
281
286
to be of the format [*annotcontlabel*][/*contlabel*]. If either
282
287
label contains a slash (/) character then use ``|`` as the
283
288
separator for the two labels instead.
289
+ {t}
284
290
"""
285
291
kwargs = self ._preprocess (** kwargs )
286
292
kind = data_kind (grid , None , None )
@@ -296,7 +302,15 @@ def grdcontour(self, grid, **kwargs):
296
302
lib .call_module ("grdcontour" , arg_str )
297
303
298
304
@fmt_docstring
299
- @use_alias (R = "region" , J = "projection" , W = "pen" , B = "frame" , I = "shading" , C = "cmap" )
305
+ @use_alias (
306
+ R = "region" ,
307
+ J = "projection" ,
308
+ W = "pen" ,
309
+ B = "frame" ,
310
+ I = "shading" ,
311
+ C = "cmap" ,
312
+ t = "transparency" ,
313
+ )
300
314
@kwargs_to_strings (R = "sequence" )
301
315
def grdimage (self , grid , ** kwargs ):
302
316
"""
@@ -312,6 +326,7 @@ def grdimage(self, grid, **kwargs):
312
326
----------
313
327
grid : str or xarray.DataArray
314
328
The file name of the input grid or the grid loaded as a DataArray.
329
+ {t}
315
330
316
331
"""
317
332
kwargs = self ._preprocess (** kwargs )
@@ -343,6 +358,7 @@ def grdimage(self, grid, **kwargs):
343
358
Wf = "facadepen" ,
344
359
p = "perspective" ,
345
360
I = "shading" ,
361
+ t = "transparency" ,
346
362
)
347
363
@kwargs_to_strings (R = "sequence" , p = "sequence" )
348
364
def grdview (self , grid , ** kwargs ):
@@ -419,6 +435,8 @@ def grdview(self, grid, **kwargs):
419
435
intensity, and ambient arguments for that module, or just give
420
436
``+d`` to select the default arguments (``+a-45+nt1+m0``).
421
437
438
+ {t}
439
+
422
440
"""
423
441
kwargs = self ._preprocess (** kwargs )
424
442
kind = data_kind (grid , None , None )
@@ -458,6 +476,7 @@ def grdview(self, grid, **kwargs):
458
476
l = "label" ,
459
477
C = "cmap" ,
460
478
U = "timestamp" ,
479
+ t = "transparency" ,
461
480
)
462
481
@kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
463
482
def plot (self , x = None , y = None , data = None , sizes = None , direction = None , ** kwargs ):
@@ -527,6 +546,8 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
527
546
{U}
528
547
label : str
529
548
Add a legend entry for the symbol or line being plotted.
549
+
550
+ {t}
530
551
"""
531
552
kwargs = self ._preprocess (** kwargs )
532
553
@@ -576,6 +597,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
576
597
i = "columns" ,
577
598
l = "label" ,
578
599
C = "levels" ,
600
+ t = "transparency" ,
579
601
)
580
602
@kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
581
603
def contour (self , x = None , y = None , z = None , data = None , ** kwargs ):
@@ -633,6 +655,7 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
633
655
to be of the format [*annotcontlabel*][/*contlabel*]. If either
634
656
label contains a slash (/) character then use ``|`` as the
635
657
separator for the two labels instead.
658
+ {t}
636
659
637
660
"""
638
661
kwargs = self ._preprocess (** kwargs )
@@ -663,6 +686,7 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
663
686
Td = "rose" ,
664
687
Tm = "compass" ,
665
688
U = "timestamp" ,
689
+ t = "transparency" ,
666
690
)
667
691
@kwargs_to_strings (R = "sequence" )
668
692
def basemap (self , ** kwargs ):
@@ -696,6 +720,7 @@ def basemap(self, **kwargs):
696
720
Draws a map magnetic rose on the map at the location defined by the
697
721
reference and anchor points
698
722
{U}
723
+ {t}
699
724
700
725
"""
701
726
kwargs = self ._preprocess (** kwargs )
@@ -705,7 +730,14 @@ def basemap(self, **kwargs):
705
730
lib .call_module ("basemap" , build_arg_string (kwargs ))
706
731
707
732
@fmt_docstring
708
- @use_alias (R = "region" , J = "projection" , U = "timestamp" , D = "position" , F = "box" )
733
+ @use_alias (
734
+ R = "region" ,
735
+ J = "projection" ,
736
+ U = "timestamp" ,
737
+ D = "position" ,
738
+ F = "box" ,
739
+ t = "transparency" ,
740
+ )
709
741
@kwargs_to_strings (R = "sequence" )
710
742
def logo (self , ** kwargs ):
711
743
"""
@@ -731,6 +763,7 @@ def logo(self, **kwargs):
731
763
Without further options, draws a rectangular border around the
732
764
GMT logo.
733
765
{U}
766
+ {t}
734
767
735
768
"""
736
769
kwargs = self ._preprocess (** kwargs )
@@ -740,7 +773,14 @@ def logo(self, **kwargs):
740
773
lib .call_module ("logo" , build_arg_string (kwargs ))
741
774
742
775
@fmt_docstring
743
- @use_alias (R = "region" , J = "projection" , D = "position" , F = "box" , M = "monochrome" )
776
+ @use_alias (
777
+ R = "region" ,
778
+ J = "projection" ,
779
+ D = "position" ,
780
+ F = "box" ,
781
+ M = "monochrome" ,
782
+ t = "transparency" ,
783
+ )
744
784
@kwargs_to_strings (R = "sequence" )
745
785
def image (self , imagefile , ** kwargs ):
746
786
"""
@@ -774,14 +814,21 @@ def image(self, imagefile, **kwargs):
774
814
monochrome : bool
775
815
Convert color image to monochrome grayshades using the (television)
776
816
YIQ-transformation.
817
+ {t}
777
818
"""
778
819
kwargs = self ._preprocess (** kwargs )
779
820
with Session () as lib :
780
821
arg_str = " " .join ([imagefile , build_arg_string (kwargs )])
781
822
lib .call_module ("image" , arg_str )
782
823
783
824
@fmt_docstring
784
- @use_alias (R = "region" , J = "projection" , D = "position" , F = "box" )
825
+ @use_alias (
826
+ R = "region" ,
827
+ J = "projection" ,
828
+ D = "position" ,
829
+ F = "box" ,
830
+ t = "transparency" ,
831
+ )
785
832
@kwargs_to_strings (R = "sequence" )
786
833
def legend (self , spec = None , position = "JTR+jTR+o0.2c" , box = "+gwhite+p1p" , ** kwargs ):
787
834
"""
@@ -816,6 +863,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
816
863
rectangular border around the legend using **MAP_FRAME_PEN**. By
817
864
default, uses '+gwhite+p1p' which draws a box around the legend
818
865
using a 1 point black pen and adds a white background.
866
+ {t}
819
867
"""
820
868
kwargs = self ._preprocess (** kwargs )
821
869
@@ -844,6 +892,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
844
892
D = "offset" ,
845
893
G = "fill" ,
846
894
W = "pen" ,
895
+ t = "transparency" ,
847
896
)
848
897
@kwargs_to_strings (
849
898
R = "sequence" ,
@@ -949,6 +998,7 @@ def text(
949
998
Sets the pen used to draw a rectangle around the text string
950
999
(see *clearance*) [Default is width = default, color = black,
951
1000
style = solid].
1001
+ {t}
952
1002
"""
953
1003
kwargs = self ._preprocess (** kwargs )
954
1004
@@ -998,7 +1048,13 @@ def text(
998
1048
lib .call_module ("text" , arg_str )
999
1049
1000
1050
@fmt_docstring
1001
- @use_alias (R = "region" , J = "projection" , B = "frame" , C = "offset" )
1051
+ @use_alias (
1052
+ R = "region" ,
1053
+ J = "projection" ,
1054
+ B = "frame" ,
1055
+ C = "offset" ,
1056
+ t = "transparency" ,
1057
+ )
1002
1058
@kwargs_to_strings (R = "sequence" )
1003
1059
def meca (
1004
1060
self ,
@@ -1094,6 +1150,7 @@ def meca(
1094
1150
{J}
1095
1151
{R}
1096
1152
{B}
1153
+ {t}
1097
1154
"""
1098
1155
1099
1156
# pylint warnings that need to be fixed
0 commit comments