Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Properly passing on horiz-/vertOn to Cursor() #1252

Merged
merged 1 commit into from

2 participants

@krischer

Simple fix to properly pass on the horizOn and vertOn keyword
arguments to the matplotlib.widgets.Cursor constructor.

@krischer krischer Properly passing on horiz-/vertOn to Cursor()
Simple fix to properly pass on the horizOn and vertOn keyword
arguments to the matplotlib.widgets.Cursor constructor.
d8b21f2
@efiring efiring merged commit d8b21f2 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 14, 2012
  1. @krischer

    Properly passing on horiz-/vertOn to Cursor()

    krischer authored
    Simple fix to properly pass on the horizOn and vertOn keyword
    arguments to the matplotlib.widgets.Cursor constructor.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/matplotlib/widgets.py
View
6 lib/matplotlib/widgets.py
@@ -801,7 +801,7 @@ class Cursor(AxesWidget):
and the visibility of the cursor itself with the *visible* attribute
"""
- def __init__(self, ax, useblit=False, **lineprops):
+ def __init__(self, ax, horizOn=True, vertOn=True, useblit=False, **lineprops):
"""
Add a cursor to *ax*. If ``useblit=True``, use the backend-
dependent blitting features for faster updates (GTKAgg
@@ -816,8 +816,8 @@ def __init__(self, ax, useblit=False, **lineprops):
self.connect_event('draw_event', self.clear)
self.visible = True
- self.horizOn = True
- self.vertOn = True
+ self.horizOn = horizOn
+ self.vertOn = vertOn
self.useblit = useblit
if useblit:
Something went wrong with that request. Please try again.