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

Use Mollweide Projection for Shell Slices #372

Merged
merged 4 commits into from
Sep 14, 2022
Merged

Use Mollweide Projection for Shell Slices #372

merged 4 commits into from
Sep 14, 2022

Conversation

nicholasjnelson
Copy link
Contributor

Changed plot_Shell_Slices.py to make Mollweide plots

@tukss
Copy link
Contributor

tukss commented Sep 12, 2022

Just as a comment: the new Python interface from #274 will also support Mollweide and other projections from matplotlib natively.

@tukss tukss self-requested a review September 12, 2022 22:19
Copy link
Contributor

@tukss tukss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove your changes to YT_volrender_tutorial2.ipynb from the PR? This is just some changed metadata, that we don't want to change every time someone commits something. I can show you how to remove it from history with git rebase if you want.

The Mollweide plot works totally fine. We might want to pass rasterized=True to the pcolormesh call. Especially for high resolution data, this really reduces the size of the PDF file. 192 kB vs. 12 MB in my case.

@tukss
Copy link
Contributor

tukss commented Sep 14, 2022

We need to rebase this fix the build error.

Changed plot_Shell_Slices.py to make Mollweide plots
nicholasjnelson and others added 3 commits September 14, 2022 16:58
Newer versions of matplotllib throw a warning when we use pcolormesh without adding a shading keyword. This adds shading=auto to all instances of pcolormesh
@tukss tukss merged commit 0570cb9 into master Sep 14, 2022
@tukss tukss deleted the fix_shellplots branch September 14, 2022 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants