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

Function to reset all aesthetics defaults #5976

Merged
merged 6 commits into from
Aug 26, 2024

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5975.

Briefly, it introduces reset_geom_defaults() and reset_stat_defaults() to undo changes introduced with update_geom_defaults() or update_stat_defaults() respectively.
Because the first time the update_*_defaults() functions are run, the then-current defaults are cached before being updated. This cache is used by the reset_*_defaults() functions as the source of original settings.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Could a function to reset all geom defaults back to the initial defaults be provided?
2 participants