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

Skip to content

Commit 803a6dd

Browse files
committed
fixed a verbose report bug in patches
svn path=/trunk/matplotlib/; revision=3966
1 parent 45356cb commit 803a6dd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/matplotlib/collections.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def set_linewidth(self, lw):
217217
ACCEPTS: float or sequence of floats
218218
"""
219219
self._linewidths = self._get_value(lw)
220+
220221
def set_linewidths(self, lw):
221222
self.set_linewidth(lw)
222223

@@ -256,6 +257,7 @@ def set_edgecolor(self, c):
256257
self._linewidths = (0.0,)
257258
else:
258259
self._edgecolors = _colors.colorConverter.to_rgba_list(c)
260+
259261
def set_edgecolors(self, c):
260262
self.set_edgecolor(c)
261263

@@ -721,6 +723,7 @@ def contains(self, mouseevent):
721723
return len(ind)>0,dict(ind=ind)
722724

723725
def set_pickradius(self,pickradius): self.pickradius = 5
726+
724727
def get_pickradius(self): return self.pickradius
725728

726729
def get_transoffset(self):

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ def draw(self, renderer):
849849

850850

851851
if not hasattr(renderer, 'draw_path'):
852-
verbose.report('patches.Ellipse renderer does not support path drawing; falling back on vertex approximation for nonlinear transformation')
852+
mpl.verbose.report('patches.Ellipse renderer does not support path drawing; falling back on vertex approximation for nonlinear transformation')
853853
renderer.draw_polygon(gc, rgbFace, self.get_verts())
854854
return
855855

0 commit comments

Comments
 (0)