diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index 333af5257b5a..5f371f64574f 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -1029,7 +1029,7 @@ def __init__(self, ax, label, initial='', self.cursor_index = 0 - self.cursor = ax.vlines(0, 0, 0, visible=False, + self.cursor = ax.vlines(0, 0, 0, visible=False, color="k", lw=1, transform=mpl.transforms.IdentityTransform()) self.connect_event('button_press_event', self._click)