You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
new margin system doesn't handle negative values in bars #7175
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()
Activity
tacaswell commentedon Sep 25, 2016
attn @mdboom
efiring commentedon Dec 4, 2016
closed by #7476