You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Marking as good first issue (but medium as you need to fiddle with GUI toolkits (and ObjC for the macos backend) -- it's not necessary for a PR to handle all backends at once).
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:
WxAgg => black dashed line
TkAgg => black solid line
The black and white line is also nice.
Activity
QuLogic commentedon Sep 20, 2022
With what backend? The rubber band should be alternating black and white in most (but not all in 3.5.3, IIRC.)
anntzer commentedon Sep 21, 2022
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.
Marking as good first issue (but medium as you need to fiddle with GUI toolkits (and ObjC for the macos backend) -- it's not necessary for a PR to handle all backends at once).
oscargus commentedon Sep 21, 2022
The MacOS-backend has a separate issue with a bit of possibly useful details: #23777
oscargus commentedon Sep 21, 2022
For wx one can add the following line
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:
komoto48g commentedon Sep 21, 2022
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:
WxAgg => black dashed line
TkAgg => black solid line
The black and white line is also nice.