8000 Fixing normalize description and warning message · matplotlib/matplotlib@49c4596 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 49c4596

Browse files
raphacosta27tacaswell
authored andcommitted
Fixing normalize description and warning message
1 parent c3e057e commit 49c4596

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2943,15 +2943,15 @@ def pie(self, x, explode=None, labels=None, colors=None,
29432943
Draw a shadow beneath the pie.
29442944
29452945
normalize: None or bool, default: None
2946-
``pie()`` used to draw a partial pie if ``sum(x) < 1``. This
2947-
behavior is deprecated and will change to always normalizing the
2948-
values to a full pie by default. If you want to draw a partial pie,
2949-
please pass ``normalize=False`` explicitly.
29502946
When *True*, always make a full pie by normalizing x so that
29512947
``sum(x) == 1``. When *False*, make a partial pie.
29522948
When *None*, gives the current behavior and warns if
29532949
``sum(x) < 1``. Please note that passing None to this parameter is
29542950
deprecated.
2951+
``pie()`` used to draw a partial pie if ``sum(x) < 1``. This
2952+
behavior is deprecated and will change to always normalizing the
2953+
values to a full pie by default. If you want to draw a partial pie,
2954+
please pass ``normalize=False`` explicitly.
29552955
29562956
labeldistance : float or None, default: 1.1
29572957
The radial distance at which the pie labels are drawn.
@@ -3025,11 +3025,11 @@ def pie(self, x, explode=None, labels=None, colors=None,
30253025
if normalize is None:
30263026
if sx < 1:
30273027
cbook.warn_deprecated(
3028-
"3.1", message="normalize=None does not normalize if "
3029-
"the sum is less than 1 "
3030-
"but this behavior is deprecated "
3031-
"since %(since)s. After the deprecation period "
3032-
"the default value will be normalize=True. "
3028+
"3.3", message="normalize=None does not normalize "
3029+
"if the sum is less than 1 but this behavior"
3030+
"is deprecated since %(since)s until %(removal)s. "
3031+
"After the deprecation "
3032+
"period the default value will be normalize=True. "
30333033
"To prevent normalization pass normalize=False ")
30343034
else:
30353035
normalize = True

0 commit comments

Comments
 (0)
0