Skip to content
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

Error with bar plot and no data #5237

Closed
Acanthostega opened this issue Oct 13, 2015 · 2 comments
Closed

Error with bar plot and no data #5237

Acanthostega opened this issue Oct 13, 2015 · 2 comments
Milestone

Comments

@Acanthostega
Copy link
Contributor

Hi everyone,

generating an empty bar plot with the current master branch of the repo creates an error:

ValueError: incompatible sizes: argument 'tick_label' must be length 0 or string

For the code example:

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)
ax.bar([], [])

With the 1.4.3 version of matplotlib from pip the code is working but not with the master branch. Is this now a normal behaviour ?

@tacaswell
Copy link
Member

This is the SCCE fixed by #4946.

@tacaswell tacaswell added this to the next point release (1.5.0) milestone Oct 13, 2015
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Oct 13, 2015
Collect (almost) all of the logic for the bar tick_label in one place.

Closes matplotlib#5237
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Oct 13, 2015
Collect (almost) all of the logic for the bar tick_label in one place.

Closes matplotlib#5237
@jenshnielsen
Copy link
Member

Closed by #5239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants