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

Skip to content

Commit 0ef37a2

Browse files
committed
Merge branch 'patch-1' of git://github.com/krischer/matplotlib into krischer-patch-1
Conflicts: lib/matplotlib/widgets.py
2 parents 1aa61e3 + d8b21f2 commit 0ef37a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/widgets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ class Cursor(AxesWidget):
829829
830830
and the visibility of the cursor itself with the *visible* attribute
831831
"""
832-
def __init__(self, ax, useblit=False, **lineprops):
832+
def __init__(self, ax, horizOn=True, vertOn=True, useblit=False, **lineprops):
833833
"""
834834
Add a cursor to *ax*. If ``useblit=True``, use the backend-
835835
dependent blitting features for faster updates (GTKAgg
@@ -844,8 +844,8 @@ def __init__(self, ax, useblit=False, **lineprops):
844844
self.connect_event('draw_event', self.clear)
845845

846846
self.visible = True
847-
self.horizOn = True
848-
self.vertOn = True
847+
self.horizOn = horizOn
848+
self.vertOn = vertOn
849849
self.useblit = useblit and self.canvas.supports_blit
850850

851851
if self.useblit:

0 commit comments

Comments
 (0)