matplotlib / matplotlib/matplotlib
[Bug]: wx + windows draws mouseover cursor text beyond the toolbar's extents
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 23.2k
- Forks
- 8.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 66
Description
### Bug summary
The mouseover cursor text is drawn "to the right" of the actual toolbar on wx + windows.
### Code for reproduction
```python
from pylab import *
mpl.use("wxagg")
imshow([[1, 2]])
show()
# then mouseover the image
```
### Actual outcome

You can guess the "x" and the "[" being cropped at the extreme right of the toolbar.
### Expected outcome
The text is flush right, as with other backends and with wxgtk.
### Additional information
This seems to have failed ever since the removal of the separate statusbar which moved the mouseover text to the toolbar's right.
### Operating system
windows
### Matplotlib Version
3.5.1, but tested for all relevant versions
### Matplotlib Backend
wxagg
### Python version
3.9
### Jupyter version
none
### Installation
git checkout
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wxagg backend and run the provided reproduction on Windows, then compare the toolbar text placement with wxgtk or another backend. Trace the code handling the toolbar's mouseover text after the separate statusbar was removed. Done means the text is flush right and no longer extends beyond the toolbar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100