Skip to content

Commit c53cb3d

Browse files
committed
Fix textbox cursor color, set its linewidth.
The cursor used to be black but the default of vlines color now matches `rcParams["lines.color"]` (blue), so change that back to black. Setting the linewidth to 1 also looks a bit nicer (than the thicker default linewidth).
1 parent 07fd38f commit c53cb3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ def __init__(self, ax, label, initial='',
10291029

10301030
self.cursor_index = 0
10311031

1032-
self.cursor = ax.vlines(0, 0, 0, visible=False,
1032+
self.cursor = ax.vlines(0, 0, 0, visible=False, color="k", lw=1,
10331033
transform=mpl.transforms.IdentityTransform())
10341034

10351035
self.connect_event('button_press_event', self._click)

0 commit comments

Comments
 (0)