we’re having a bit of a problem when creating a figure with UI elements, saving and then opening it again. In particular, it looks like savefig() messes up the position property when the UI elements are placed in a panel.
I’ve attached a function to replicate this; in figure f2, only the panel is visible because the button’s positions are completely wrong; so currently, we’d have to reset the position property as in figure f3.
We’re not really sure if this is a bug or if we just need a bit of a workaround - does anyone else have better ideas how to deal with this? We have a lot of UI elements on UI panels, so at the moment it doesn’t really matter if we build the figure from scratch each time or save the figure and reset the position properties…
Additional system infos: tested on Linux + Octave dev (as of 05/2020), and on Windows 10 + Octave 6.1
SaveOpenFigProblem.m (484 Bytes)