Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit899f11d

Browse files
committed
Merge branch 'issue_2150'
Conflicts:CHANGELOG
2 parents53342c6 +c02f511 commit899f11d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
2014-03-27 Added tests for pie ccw parameter. Removed pdf and svg images
3030
from tests for pie linewidth parameter.
3131

32+
2014-03-24 Changed the behaviour of axes to not ignore leading or trailing
33+
patches of height 0 (or width 0) while calculating the x and y
34+
axis limits. Patches having both height == 0 and width == 0 are
35+
ignored.
36+
3237
2014-03-24 Added bool kwarg (manage_xticks) to boxplot to enable/disable
3338
the managemnet of the xlimits and ticks when making a boxplot.
3439
Default in True which maintains current behavior by default.

‎lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,8 +1556,10 @@ def _update_patch_limits(self, patch):
15561556
# the auto-scaling
15571557

15581558
# cannot check for '==0' since unitized data may not compare to zero
1559+
# issue #2150 - we update the limits if patch has non zero width
1560+
# or height.
15591561
if (isinstance(patch,mpatches.Rectangle)and
1560-
((notpatch.get_width())or (notpatch.get_height()))):
1562+
((notpatch.get_width())and (notpatch.get_height()))):
15611563
return
15621564
vertices=patch.get_path().vertices
15631565
ifvertices.size>0:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp