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

Skip to content

Commit d5cdf55

Browse files
committed
added zorder to legend
svn path=/trunk/matplotlib/; revision=2501
1 parent e8bc11c commit d5cdf55

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ def release_zoom(self, event):
14751475

14761476
self.draw()
14771477
self._xypress = None
1478-
self._button_pressed == None
1478+
self._button_pressed = None
14791479

14801480
self.push_current()
14811481
self.release(event)

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class Legend(Artist):
108108

109109

110110

111-
111+
zorder = 5
112112
def __init__(self, parent, handles, labels, loc,
113113
isaxes= None,
114114
numpoints = None, # the number of points in the legend line

0 commit comments

Comments
 (0)