-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Various small simplifications #14695
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
Conversation
1333957
to
897eea0
Compare
Conflicts... |
rebased |
@@ -2734,16 +2734,13 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0, | |||
raise TypeError('stem expected between 1 and 5 positional ' | |||
'arguments, got {}'.format(args)) | |||
|
|||
y = np.asarray(args[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if you need this asarray
bit? I guess it's covered by convert_xunits
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes; in fact this change means that stem now correctly handles units on y-data (whereas they would be previously dropped by the call to asarray). Not an intentional change though :)
PR Summary
PR Checklist