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

Skip to content

Commit 4cfa781

Browse files
committed
method name explicitly written in the message
1 parent 0c1f9f7 commit 4cfa781

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,8 +2105,8 @@ def draw_artist(self, a):
21052105
data (axis ticks, labels, etc are not updated)
21062106
"""
21072107
if self._cachedRenderer is None:
2108-
msg = draw_artist.__name__ + ''' can only be used after an initial
2109-
draw which caches the render'''
2108+
msg = '''draw_artist can only be used after an initial draw which
2109+
caches the render'''
21102110
raise AttributeError(msg)
21112111
a.draw(self._cachedRenderer)
21122112

@@ -2117,8 +2117,8 @@ def redraw_in_frame(self):
21172117
data (axis ticks, labels, etc are not updated)
21182118
"""
21192119
if self._cachedRenderer is None:
2120-
msg = redraw_in_frame.__name__ + ''' can only be used after an
2121-
initial draw which caches the render'''
2120+
msg = '''redraw_in_frame can only be used after an initial draw
2121+
which caches the render'''
21222122
raise AttributeError(msg)
21232123
self.draw(self._cachedRenderer, inframe=True)
21242124

0 commit comments

Comments
 (0)