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

Improve plot window size behaviour #41

Open
philipstarkey opened this issue Oct 30, 2018 · 0 comments
Open

Improve plot window size behaviour #41

philipstarkey opened this issue Oct 30, 2018 · 0 comments
Labels
bug Something isn't working major

Comments

@philipstarkey
Copy link
Member

Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


There are a couple of issues with Plot window sizes:

  • Plot window sizes don't seem to agree with the parameters specified in a call to figure(). I'm not sure if this happens all the time, or just on small figures, or just randomly. Sometimes it's close, and other times it's completely wrong (even the wrong aspect ratio). I tried to track it down but it wasn't immediately obvious (I think it is to do with the call to Plot.ui.adjustSize() though in analysis_subprocess.py)

  • The first run of a script sets the plot window size. I think we should have the ability to unlock the window size to match the specifications of the last run of the script. This should be trivial to do once the above issue is resolved (as I think we just need to call Plot.update_window_size() after the script runs when we want the plot window to resize itself)

Implementing the above would greatly aid the aim of producing publication quality plots (that need no further editing) from within the lyse GUI. Currently we have resorted to running the scripts from a terminal which works fine (so it is not a matplotlib issue, it's a lyse plot window issue).

@philipstarkey philipstarkey added major bug Something isn't working labels Apr 5, 2020
Loki27182 pushed a commit to Loki27182/lyse that referenced this issue Oct 9, 2023
Python 3

Approved-by: Jan Werkmann <jan.wrk.fb@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant