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

Skip to content

Commit e6f36d8

Browse files
authored
Merge pull request #21103 from meeseeksmachine/auto-backport-of-pr-21089-on-v3.5.x
Backport PR #21089 on branch v3.5.x (Update sticky_edges docstring to new behavior.)
2 parents e4f9e86 + 0b9a623 commit e6f36d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/artist.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,11 @@ def sticky_edges(self):
11191119
where one usually expects no margin on the bottom edge (0) of the
11201120
histogram.
11211121
1122+
Moreover, margin expansion "bumps" against sticky edges and cannot
1123+
cross them. For example, if the upper data limit is 1.0, the upper
1124+
view limit computed by simple margin application is 1.2, but there is a
1125+
sticky edge at 1.1, then the actual upper view limit will be 1.1.
1126+
11221127
This attribute cannot be assigned to; however, the ``x`` and ``y``
11231128
lists can be modified in place as needed.
11241129

0 commit comments

Comments
 (0)