@@ -226,6 +226,7 @@ def colorbar(self, **kwargs):
226
226
S = "resample" ,
227
227
U = "timestamp" ,
228
228
W = "pen" ,
229
+ l = "label" ,
229
230
)
230
231
@kwargs_to_strings (R = "sequence" , L = "sequence" , A = "sequence_plus" )
231
232
def grdcontour (self , grid , ** kwargs ):
@@ -275,6 +276,13 @@ def grdcontour(self, grid, **kwargs):
275
276
{G}
276
277
{U}
277
278
{W}
279
+ label : str
280
+ Add a legend entry for the contour being plotted. Normally, the
281
+ annotated contour is selected for the legend. You can select the
282
+ regular contour instead, or both of them, by considering the label
283
+ to be of the format [*annotcontlabel*][/*contlabel*]. If either
284
+ label contains a slash (/) character then use ``|`` as the
285
+ separator for the two labels instead.
278
286
"""
279
287
kwargs = self ._preprocess (** kwargs )
280
288
kind = data_kind (grid , None , None )
@@ -568,6 +576,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
568
576
W = "pen" ,
569
577
L = "triangular_mesh_pen" ,
570
578
i = "columns" ,
579
+ l = "label" ,
571
580
C = "levels" ,
572
581
)
573
582
@kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
@@ -619,6 +628,13 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
619
628
skip : bool or str
620
629
Skip input points outside region ``'[p|t]'``
621
630
{W}
631
+ label : str
632
+ Add a legend entry for the contour being plotted. Normally, the
633
+ annotated contour is selected for the legend. You can select the
634
+ regular contour instead, or both of them, by considering the label
635
+ to be of the format [*annotcontlabel*][/*contlabel*]. If either
636
+ label contains a slash (/) character then use ``|`` as the
637
+ separator for the two labels instead.
622
638
623
639
"""
624
640
kwargs = self ._preprocess (** kwargs )
@@ -997,7 +1013,7 @@ def text(
997
1013
998
1014
@fmt_docstring
999
1015
@use_alias (R = "region" , J = "projection" , B = "frame" , C = "offset" )
1000
- @kwargs_to_strings (R = "sequence" , )
1016
+ @kwargs_to_strings (R = "sequence" )
1001
1017
def meca (
1002
1018
self ,
1003
1019
spec ,
0 commit comments