-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]: Make rubber band more visible #23969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
With what backend? The rubber band should be alternating black and white in most (but not all in 3.5.3, IIRC.) |
IIRC it's wx which used that colored rectangle previously. Currently it doesn't draw the white dashes; seems straightforward enough to add that. Looking at other backends, I believe tk and macos also need the improvement. |
The MacOS-backend has a separate issue with a bit of possibly useful details: #23777 |
For wx one can add the following line drawDC.DrawLineList(
[(x0, y0, x1, y0), (x1, y0, x1, y1),
(x0, y0, x0, y1), (x0, y1, x1, y1)],
wx.Pen('WHITE', 1, wx.PENSTYLE_SOLID)) before matplotlib/lib/matplotlib/backends/backend_wx.py Lines 629 to 632 in 4a62222
to get a black-white-line as discussed in #23777 wx does not support 0-length dashes, so one cannot start with a gap (as far as I can tell). Bonuses:
|
Thank you for your consideration of this issue. I tested on Windows 10 with matplotlib 3.5.3/WxAgg and TkAgg. The two seem slightly different: |
Problem
If the image is dark such as diffraction patterns, the rubber band is hardly visible.
Proposed solution
Candidates would be,
Cursor
).The text was updated successfully, but these errors were encountered: