jgieseler / solarmach

Python package of the multi-spacecraft longitudinal configuration plotter Solar-MACH
https://solarmach.readthedocs.io
BSD 3-Clause "New" or "Revised" License
26 stars 6 forks source link

Legend misaligned with latest matplotlib #28

Closed jgieseler closed 9 months ago

jgieseler commented 1 year ago

Until (at least) matplotlib version 3.5.3 the solarmach plot looks fine, but with the latest version (3.6.2), the figure is cropped a bit on the right side, resulting the legend to be cropped (and the logo being closer to the edge): Solar-MACH_2021-10-20_00:00:00

Don't know yet what has changed, but maybe it's a good moment to make the figure code a bit more "robust". And also tackle it together with Provide option to move the legend and logo (#24).

jgieseler commented 1 year ago

Because of this, for Solar-MACH the matlotlib version is fixed to 3.5.3 for now: https://github.com/jgieseler/Solar-MACH/blob/master/requirements.txt#L2

To fix it locally, install the working matplotlib version using pip install matplotlib==3.5.3

jgieseler commented 1 year ago

Interestingly, for the conda version, only matplotlib version 3.5.3 is installed, even so the version is not defined in the recipe. So there the problem doesn't occur so far.