rgerum / pylustrator

Visualisations of data are at the core of every publication of scientific research results. They have to be as clear as possible to facilitate the communication of research. As data can have different formats and shapes, the visualisations often have to be adapted to reflect the data as well as possible. We developed Pylustrator, an interface to directly edit python generated matplotlib graphs to finalize them for publication. Therefore, subplots can be resized and dragged around by the mouse, text and annotations can be added. The changes can be saved to the initial plot file as python code.
GNU General Public License v3.0
707 stars 37 forks source link

Make the panels resizeable #42

Closed fconil closed 2 years ago

fconil commented 2 years ago

Hi,

I just tried Pylustrator with the example code and I like your idea.

I am using Ubuntu 22.04, Python 3.10, Pylustrator runs in a virtual environment.

If the screen resolution is too high (3840 x 2160, scale 200%), the right panel is not usable : the controls are too small.

It would be nice, if you can make the panels resizeable.

Regards

rgerum commented 2 years ago

I made the toolbar resizable. But now the left bar also extends when resizing the window. I am not sure how to convince Qt otherwise...

AlainOUYANG commented 2 years ago

A similar problem on macOS 12.5.1 (with the portion in the red rectangle):

resize

fconil commented 2 years ago

Having some control under the menu bar is a good improvement.

I can not capture the mouse cursor but when it is in the "green" area, but its shape changes to a form that make me believe I can resize the panels. Unfortunately, it has not effect.

As a consequence, some controls are still difficult to use (x-Label, x-Lim) without panel resize. The size seems fixed to the size it gets at launch.

pylustrator-panel-not-resizable

rgerum commented 2 years ago

The panel is now properly resizeable. Took me a while to figure out how to best implement that with the Qt sizing policies.