@@ -6872,8 +6872,8 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
68726872 return tops , bins , cbook .silent_list (patch_type , patches )
68736873
68746874 @_preprocess_data ()
6875- def histline (self , values , bins = None , * ,
6876- orientation = 'vertical' , baseline = 0 , fill = False , ** kwargs ):
6875+ def levels (self , values , edges = None , * ,
6876+ orientation = 'vertical' , baseline = 0 , fill = False , ** kwargs ):
68776877 """
68786878 A histogram-like line or filled plot.
68796879
@@ -6882,8 +6882,8 @@ def histline(self, values, bins=None, *,
68826882 values : array-like
68836883 An array of y-values.
68846884
6885- bins : array-like, default: ``range(len(vals)+1)``
6886- A array of x-values, with ``len(bins ) == len(vals) + 1``,
6885+ edges : array-like, default: ``range(len(vals)+1)``
6886+ A array of x-values, with ``len(edges ) == len(vals) + 1``,
68876887 between which the curve takes on vals values.
68886888
68896889 orientation : {'vertical', 'horizontal'}, default: 'vertical'
@@ -6896,12 +6896,12 @@ def histline(self, values, bins=None, *,
68966896
68976897 Returns
68986898 -------
6899- StepPatch : `.patches.StepPatch `
6899+ LevelsPatch : `matplotlib .patches.LevelsPatch `
69006900
69016901 Other Parameters
69026902 ----------------
69036903 **kwargs
6904- `~. matplotlib.patches.StepPatch ` properties
6904+ `~matplotlib.patches.LevelsPatch ` properties
69056905
69066906 """
69076907
@@ -6915,15 +6915,15 @@ def histline(self, values, bins=None, *,
69156915 else :
69166916 kwargs .setdefault ('edgecolor' , _color )
69176917
6918- if bins is None :
6919- bins = np .arange (len (values ) + 1 )
6920-
6921- patch = mpatches .StepPatch (values ,
6922- bins ,
6923- baseline = baseline ,
6924- orientation = orientation ,
6925- fill = fill ,
6926- ** kwargs )
6918+ if edges is None :
6919+ edges = np .arange (len (values ) + 1 )
6920+
6921+ patch = mpatches .LevelsPatch (values ,
6922+ edges ,
6923+ baseline = baseline ,
6924+ orientation = orientation ,
6925+ fill = fill ,
6926+ ** kwargs )
69276927 self .add_patch (patch )
69286928 if baseline is None :
69296929 baseline = 0
0 commit comments