From 659d20be11a25244675d1b144d8e7f4080fe98f0 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 8 Apr 2021 23:40:16 -0400 Subject: [PATCH] Backport PR #19903: Fix textbox cursor color, set its linewidth. --- lib/matplotlib/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index b05f3e81a12d..c0d9e174bbdc 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)