Description
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 toPlot.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).