Skip to content

Added shade_kwargs to utils.mountain_plot().#122

Merged
TomGeorge1234 merged 1 commit intoRatInABox-Lab:mainfrom
colleenjg:cjg-dev
Feb 5, 2025
Merged

Added shade_kwargs to utils.mountain_plot().#122
TomGeorge1234 merged 1 commit intoRatInABox-Lab:mainfrom
colleenjg:cjg-dev

Conversation

@colleenjg
Copy link
Copy Markdown
Contributor

This addresses issue #121 enabling users to pass keyword arguments to the fill_between() function used for shading in utils.mountain_plot(). As a result, users can control the shading properties more closely.

For instance, this provides an easy way for users to circumvent the pyplot issue whereby exported plots with a lot of fill_between() shading produce very large and even truncated vector files. Until this issue is fixed, this problem can be circumvented by adding "rasterized": True to shade_kwargs, such that the shading specifically is converted to a pixel image instead of being saved as a very large set of vectors.

@TomGeorge1234 TomGeorge1234 merged commit 92f0d99 into RatInABox-Lab:main Feb 5, 2025
@TomGeorge1234
Copy link
Copy Markdown
Collaborator

Sorry, I forgot about this but just merged. Thanks again!!!!

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