Skip to content

new margin system doesn't handle negative values in bars #7175

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

Closed
anntzer opened this issue Sep 25, 2016 · 2 comments
Closed

new margin system doesn't handle negative values in bars #7175

anntzer opened this issue Sep 25, 2016 · 2 comments
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Sep 25, 2016

While working on #5538 (comment) (allow artists to opt-out from being considered by the autoscaler), I noticed that the new margins machinery doesn't handle negative values in bar plots very well:

from matplotlib import pyplot as plt
fig, axs = plt.subplots(1, 2)

# wanted behavior: remove the margin at y=0.
axs[0].bar(0, 1)

# unwanted behavior: remove the margin at y=-1
axs[1].bar(0, -1)

plt.show()

bar

attn @mdboom

@anntzer anntzer added this to the 2.0 (style change major release) milestone Sep 25, 2016
@tacaswell
Copy link
Member

attn @mdboom

@efiring
Copy link
Member

efiring commented Dec 4, 2016

closed by #7476

@efiring efiring closed this as completed Dec 4, 2016
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