Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Correctly infer units from empty arrays #12124

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

Merged
merged 2 commits into from
Sep 16, 2018

Conversation

dstansby
Copy link
Member

Fixes #12118

@tacaswell tacaswell added this to the v3.1 milestone Sep 16, 2018
@tacaswell tacaswell merged commit d0e408e into matplotlib:master Sep 16, 2018
@dstansby dstansby deleted the empty-units branch September 16, 2018 09:19
@@ -127,3 +127,8 @@ def test_jpl_barh_units():
fig, ax = plt.subplots()
ax.barh(x, w, left=b)
ax.set_xlim([b-1*day, b+w[-1]+1*day])


def test_emtpy_arrays():
Copy link
Member

Choose a reason for hiding this comment

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

NBD, but this should say empty.

@QuLogic QuLogic changed the title Correctly infer units from emtpy arrays Correctly infer units from emppty arrays Apr 18, 2020
@QuLogic QuLogic changed the title Correctly infer units from emppty arrays Correctly infer units from empty arrays Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scatter: empty np.arrays with non-numeric dtypes cause TypeError
4 participants