Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48c2068

Browse files
committed
fix: add histline to pyplot
1 parent 67c15ec commit 48c2068

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,6 +2777,17 @@ def hist(
27772777
**({"data": data} if data is not None else {}), **kwargs)
27782778

27792779

2780+
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
2781+
@_copy_docstring_and_deprecators(Axes.histline)
2782+
def histline(
2783+
vals, bins=None, *, orientation='vertical', baseline=0,
2784+
fill=False, data=None, **kwargs):
2785+
return gca().histline(
2786+
vals, bins=bins, orientation=orientation, baseline=baseline,
2787+
fill=fill, **({"data": data} if data is not None else {}),
2788+
**kwargs)
2789+
2790+
27802791
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
27812792
@_copy_docstring_and_deprecators(Axes.hist2d)
27822793
def hist2d(

tools/boilerplate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def boilerplate_gen():
215215
'grid',
216216
'hexbin',
217217
'hist',
218+
'histline',
218219
'hist2d',
219220
'hlines',
220221
'imshow',

0 commit comments

Comments
 (0)