Bug summary
Setting the yscale to log in histogram results in empty plot
Code for reproduction
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt plt.figure() plt.hist(np.random.normal(size=1000)) plt.yscale('log') plt.show()
Actual outcome
Expected outcome
Matplotlib version
plt.yscale('log', nonposy='clip') will show the histogram on the log scale.
This was changed in dda42ab / #8836 and document http://matplotlib.org/devdocs/api/api_changes.html#default-behavior-of-log-scales-changed-to-mask-0-values.
ah yes that works. Wasn't aware of the change
No worries!
Activity
tacaswell commented on Sep 28, 2017
plt.yscale('log', nonposy='clip') will show the histogram on the log scale.
tacaswell commented on Sep 28, 2017
This was changed in dda42ab / #8836 and document http://matplotlib.org/devdocs/api/api_changes.html#default-behavior-of-log-scales-changed-to-mask-0-values.
weninc commented on Sep 28, 2017
ah yes that works. Wasn't aware of the change
tacaswell commented on Sep 28, 2017
No worries!