Skip to content
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

Toolbar missing when running on linux #24

Open
lit-af opened this issue Oct 30, 2024 · 5 comments
Open

Toolbar missing when running on linux #24

lit-af opened this issue Oct 30, 2024 · 5 comments

Comments

@lit-af
Copy link

lit-af commented Oct 30, 2024

This isn't the first time I notice something wrong with the zoom and scroll toolbar. On Windows, it shows behind the Windows 11 menu bar. On Ubuntu Linux it simply doesn't show.
Screenshot from 2024-10-30 15-46-02

EDIT:
It actually shows when the window is in a screen where there's no menu bar displayed.
image

@AKuederle
Copy link
Member

AKuederle commented Oct 30, 2024 via email

@AKuederle
Copy link
Member

I think I found the issue. When the figsize is to large (20 by 10 inches by default) compared to your screen, the toolbar does not have enough space to get displayed.

I added a parameter to the methods that open the GUI to control the initial plot size. This hsould be available as the latest release (2.6) in a couple of minutes.

I also shipped a bunch of QoL improvements for the GUI:

You can now use shortcuts (o, p, h, b, and f) to activate the matplib tools for zooming, panning, home, back, and forward.
Once zoomed in, you can use the scrollwheel to scroll along the x-axis.
The first section is also activated by default now, so you can start labeling right away.

@lit-af
Copy link
Author

lit-af commented Oct 31, 2024

I just tested the newest release v2.6.0. It's partially fixed.

Python 3.10.12
matplotlib 3.9.2
tkinter version:

libtk8.6/jammy,now 8.6.12-1build1 amd64 [installed,automatic]
python3-tk/jammy-updates,jammy-security,now 3.10.8-1~22.04 amd64 [installed]
tk8.6-blt2.5/jammy,now 2.5.3+dfsg-4.1build2 amd64 [installed,automatic]

On a screen with OS tool bar:
image

When used on my second screen with no toolbar it's working as expected:
image

On both screens if the window isn't scaled to the maximum size possible the toolbar disappears.
image

Thanks for the QoL things like keyboard shortcuts, it really helps :)

@AKuederle
Copy link
Member

AKuederle commented Oct 31, 2024 via email

@AKuederle
Copy link
Member

Could you solve your problem, by setting a smaller figsize?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants