-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
matplotlib kwarg de-aliasing helper function #1041
Comments
I'll like to work on this one! |
I found the kwarg normalization in matplotlib here. This function is then used like this here to set properties. |
Yes, something similar. |
Hey, I was working some examples in the cookbook. Can you please confirm this is what we are looking for. |
@ahartikainen Should I make different functions for scatter plots and other plots, or use conditionals in one function? |
Tell us about it
There are many kwarg arguments in matplotlib that accept an alias, which can get quite messy when ArviZ sets default values for them. I propose to pass the kwarg dicts through this helper function and then always work internally with the complete name.
Thoughts on implementation
Use a matplotlib internal function if it exists? Otherwise we should create one (or several, see note).
Note: some aliases are not universal like the case of color and c in a scatter plot.
References that may (or not) be useful: Line2D properties and Collection properties
The text was updated successfully, but these errors were encountered: