Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
When enabling log scale for the bar plot, the bars are not plotted properly and the plot is empty.
See also this bug report#163 and the corresponding fix#2147.
Commitdda42ab changed the default value ofnonpos
parameter fromclip
tomask
which introduced the issue. I cannot tell whetherclip
should be default behavior ormask
doesn't work as intended.
importmatplotlib.pyplotaspltplt.bar(x=[1,2,3],height=[1000,2,3])plt.yscale("log")plt.show()
Result is an empty plot. Saving to an image file or PDF doesn't make a change.
Adding
plt.yscale("log",nonposy="clip")
fixes that issue.
Additional info:
Latest Miniconda
Various platforms (Ubuntu 16.04, Windows 10, macOS)
Matplotlib 2.1.0, Qt5Agg (from Anaconda)