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

Skip to content

Commit 511082f

Browse files
committed
Update Axes.pyi pie stub to include hatch, regenerate pyplot with hatch annotation
1 parent 661e886 commit 511082f

File tree

2 files changed

+44
-9
lines changed

2 files changed

+44
-9
lines changed

lib/matplotlib/axes/_axes.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ class Axes(_AxesBase):
298298
frame: bool = ...,
299299
rotatelabels: bool = ...,
300300
*,
301-
normalize: bool = ...
301+
normalize: bool = ...,
302+
hatch: str | Sequence[str] | None = ...
302303
): ...
303304
def errorbar(
304305
self,

lib/matplotlib/pyplot.py

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2826,15 +2826,49 @@ def phase_spectrum(x: ArrayLike, Fs: float | None = None, Fc: int | None = None,
28262826

28272827
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
28282828
@_copy_docstring_and_deprecators(Axes.pie)
2829-
def pie(x: ArrayLike, explode: ArrayLike | None = None, labels: Sequence[str] | None = None, colors: Sequence[Color] | None = None, autopct: str | Callable[[float], str] | None = None, pctdistance: float = 0.6, shadow: bool = False, labeldistance: float = 1.1, startangle: float = 0, radius: float = 1, counterclock: bool = True, wedgeprops: dict[str, Any] | None = None, textprops: dict[str, Any] | None = None, center: tuple[float, float] = (0, 0), frame: bool = False, rotatelabels: bool = False, *, normalize: bool = True, hatch=None, data=None):
2829+
def pie(
2830+
x: ArrayLike,
2831+
explode: ArrayLike | None = None,
2832+
labels: Sequence[str] | None = None,
2833+
colors: Sequence[Color] | None = None,
2834+
autopct: str | Callable[[float], str] | None = None,
2835+
pctdistance: float = 0.6,
2836+
shadow: bool = False,
2837+
labeldistance: float = 1.1,
2838+
startangle: float = 0,
2839+
radius: float = 1,
2840+
counterclock: bool = True,
2841+
wedgeprops: dict[str, Any] | None = None,
2842+
textprops: dict[str, Any] | None = None,
2843+
center: tuple[float, float] = (0, 0),
2844+
frame: bool = False,
2845+
rotatelabels: bool = False,
2846+
*,
2847+
normalize: bool = True,
2848+
hatch: str | Sequence[str] | None = None,
2849+
data=None,
2850+
):
28302851
return gca().pie(
2831-
x, explode=explode, labels=labels, colors=colors,
2832-
autopct=autopct, pctdistance=pctdistance, shadow=shadow,
2833-
labeldistance=labeldistance, startangle=startangle,
2834-
radius=radius, counterclock=counterclock,
2835-
wedgeprops=wedgeprops, textprops=textprops, center=center,
2836-
frame=frame, rotatelabels=rotatelabels, normalize=normalize,
2837-
hatch=hatch, **({"data": data} if data is not None else {}))
2852+
x,
2853+
explode=explode,
2854+
labels=labels,
2855+
colors=colors,
2856+
autopct=autopct,
2857+
pctdistance=pctdistance,
2858+
shadow=shadow,
2859+
labeldistance=labeldistance,
2860+
startangle=startangle,
2861+
radius=radius,
2862+
counterclock=counterclock,
2863+
wedgeprops=wedgeprops,
2864+
textprops=textprops,
2865+
center=center,
2866+
frame=frame,
2867+
rotatelabels=rotatelabels,
2868+
normalize=normalize,
2869+
hatch=hatch,
2870+
**({"data": data} if data is not None else {}),
2871+
)
28382872

28392873

28402874
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

0 commit comments

Comments
 (0)