matplotlib / matplotlib/matplotlib

[Bug]: wx + windows draws mouseover cursor text beyond the toolbar's extents

Open
#22,014 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

GUI: wx OS: Microsoft
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

![wx](https://user-images.githubusercontent.com/1322974/146775667-2d45fda3-09d7-47c3-9ec2-4fda310ca235.png)
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.