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

Skip to content

Commit 46fe600

Browse files
committed
added some additional comments to axes to clarify the patch/frame relationship
svn path=/trunk/matplotlib/; revision=5912
1 parent de8bc4d commit 46fe600

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,8 @@ def draw(self, renderer=None, inframe=False):
14511451

14521452
self.apply_aspect(self.get_position(True))
14531453

1454+
# the patch draws the background rectangle -- the frame below
1455+
# will draw the edges
14541456
if self.axison and self._frameon:
14551457
self.patch.draw(renderer)
14561458

@@ -1506,6 +1508,9 @@ def draw(self, renderer=None, inframe=False):
15061508
if self.legend_ is not None:
15071509
artists.append(self.legend_)
15081510

1511+
# the frame draws the edges around the axes patch -- we
1512+
# decouple these so the patch can be in the background and the
1513+
# frame in the foreground.
15091514
if self.axison and self._frameon:
15101515
artists.append(self.frame)
15111516

0 commit comments

Comments
 (0)