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

Skip to content

Commit 05c6f21

Browse files
author
Steve Chaplin
committed
'SC'
svn path=/trunk/matplotlib/; revision=1585
1 parent 13e88c0 commit 05c6f21

2 files changed

Lines changed: 55 additions & 55 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,14 @@ def draw_arc(self, gcEdge, rgbFace, x, y, width, height, angle1, angle2):
3939
"""
4040
raise NotImplementedError
4141

42-
def draw_image(self, x, y, im, origin, bbox):
42+
def draw_image(self, x, y, im, bbox):
4343
"""
4444
Draw the Image instance into the current axes; x is the
4545
distance in pixels from the left hand side of the canvas. y is
4646
the distance from the origin. That is, if origin is upper, y
4747
is the distance from top. If origin is lower, y is the
4848
distance from bottom
4949
50-
origin is 'upper' or 'lower'
51-
5250
bbox is a matplotlib.transforms.BBox instance for clipping, or
5351
None
5452
"""
@@ -567,14 +565,14 @@ class DrawEvent(Event):
567565
An event triggered by a draw operation on the canvas
568566
569567
Attributes are
570-
name
568+
name
571569
canvas
572570
renderer - the Renderer instance
573571
"""
574572
def __init__(self, name, canvas, renderer):
575573
Event.__init__(self, name, canvas)
576574
self.renderer = renderer
577-
575+
578576
class LocationEvent(Event):
579577
"""
580578
A event that has a screen location
@@ -742,7 +740,7 @@ def button_press_event(self, x, y, button, guiEvent=None):
742740
Backend derived classes should call this function on any mouse
743741
button press. x,y are the canvas coords: 0,0 is lower, left.
744742
button and key are as defined in MouseEvent
745-
"""
743+
"""
746744
self._button = button
747745
event = MouseEvent('button_press_event', self, x, y, button, self._key, guiEvent=guiEvent)
748746
for cid, func in self.callbacks.get('button_press_event', {}).items():
@@ -829,7 +827,7 @@ def func(event)
829827
830828
'draw_event'
831829
'key_press_event'
832-
'key_release_event'
830+
'key_release_event'
833831
'button_press_event'
834832
'button_release_event'
835833
'motion_notify_event'
@@ -845,7 +843,7 @@ def func(event)
845843

846844
assert s in ('draw_event',
847845
'key_press_event',
848-
'key_release_event',
846+
'key_release_event',
849847
'button_press_event',
850848
'button_release_event',
851849
'motion_notify_event',

0 commit comments

Comments
 (0)