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

Legend misaligned with latest matplotlib #28

Closed
jgieseler opened this issue Nov 11, 2022 · 2 comments
Closed

Legend misaligned with latest matplotlib #28

jgieseler opened this issue Nov 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jgieseler
Copy link
Owner

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 jgieseler added the bug Something isn't working label Nov 11, 2022
@jgieseler
Copy link
Owner Author

jgieseler commented Nov 11, 2022

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
Copy link
Owner Author

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.

jgieseler added a commit to serpentine-h2020/serpentine that referenced this issue Apr 17, 2023
fix matplotlib version to 3.5.3 to avoid jgieseler/solarmach#28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant