You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to set default scatter edge parameters in matplotlibrc #11933
Issue #6272 brought up the idea to edit the matplotlibrc to set the default marker when calling plt.scatter(). Can this be updated to include other default parameters, e.g. linewidths and/or edgecolors?
Most parameters are actually controlled via rcParams already, e.g. rcParams['lines.linewidth']. The case of marker was a bit different, because it had a hard-coded value.
I'm not quite sure if we want to do per-plot-type settings of all the style parameters. It adds a bit more flexibility for default styles. On the other hand the styles would have to define many more parameters lines.linewidth, scatter.linewidth, ..., which most of the time will be identical. Or alternatively we would need to implement a cascaded style system with a general line width, which may be overriden with other per-plot-type settings.
If we decide that per-plot-type settings are desireable, I propose to develop such a cascaded style system first to keep the complexity under control. Personally, I'm -0.5 on this because the gain is not large enough compared to the amount of required work.
Another issue for colors (including edgecolors): The code is already quite complex and I strongly advise against adding more stuff in the current state. #11663 starts the color parsing refactoring and should be merged before changing anything color-related in scatter().
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
timhoffm commentedon Aug 25, 2018
Most parameters are actually controlled via rcParams already, e.g.
rcParams['lines.linewidth']. The case of marker was a bit different, because it had a hard-coded value.I'm not quite sure if we want to do per-plot-type settings of all the style parameters. It adds a bit more flexibility for default styles. On the other hand the styles would have to define many more parameters
lines.linewidth,scatter.linewidth, ..., which most of the time will be identical. Or alternatively we would need to implement a cascaded style system with a general line width, which may be overriden with other per-plot-type settings.If we decide that per-plot-type settings are desireable, I propose to develop such a cascaded style system first to keep the complexity under control. Personally, I'm -0.5 on this because the gain is not large enough compared to the amount of required work.
Another issue for colors (including edgecolors): The code is already quite complex and I strongly advise against adding more stuff in the current state. #11663 starts the color parsing refactoring and should be merged before changing anything color-related in
scatter().github-actions commentedon Jun 5, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!