-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]: consistent behaviour for stem #23127
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
Comments
Thank you for the feedback.
The second aspect is default coloring. Stem does not participate in the color cycle. One can argue that it should and that it's a design flaw. However, please note that the proposed changes would change the look of existing plots. We are very defensive of such changes. Not breaking our users plots has often a higher priority than making the API a bit better. We have a long-term list for future style changes to be considered for a breaking major release (#14331). I've added the color-cycle participation there. |
I would guess that most folks calling |
@jklymak nailed the point regarding the waitlist.
matplotlib/lib/matplotlib/axes/_axes.py Lines 2918 to 2923 in 79f28ec
More precisely, a new attribute |
The danger of people calling Concerning a |
My point is that, given that
such behaviour should be extended for uniformity. That's it. |
I recognize and respect that. Uniformity is important, but it's only one among multiple aspects to consider when defining the API. We're not making it better by spreading problematic API through the library. If I could design from scratch, I would do a number of things differently. But in reality we have to compromise somewhere between backward-compatibility, consistency, and clean design. That said, I believe we can balance the aspects here better.
|
Awesome, thanks. ❤️ |
Problem
stem
andplot
should be interchangeable.Plotting two lines
Choosing the colours
Now with stem
Same colour? Why? Which one is which???
Okay, let me choose the colours
ERROR!
Proposed solution
Share the same basic syntax across functions visualising the same type of data?
The text was updated successfully, but these errors were encountered: