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 as not planned
Description
Feature request
Summary
With the new style of plotting (after version 1.5), you cannot distinguish the bars onplt.hist
. Take for example the old way:
importmatplotlib.pyplotaspltimportrandoml_n= []for_inrange(2000):l_n.append(random.betavariate(5,25))withplt.style.context('classic'):plt.hist(l_n,bins=20)plt.show()
Unfortunately, I cannot upload images. Nevertheless, you can see the bars. Now, this:
plt.hist(l_n,bins=20)plt.show()
You only see the silhouette of the histogram, not the bars. An easy way to solve this:
plt.hist(l_n,bins=20,edgecolor='w')plt.show()
edgecolor='w'
would be the default option (I would prefer white because it looks good with all the styles). What do you think?
By the way, if you want to compare with other software, I think all of them show bars. And a quick searchshows...
Matplotlib version
- Operating system: Ubuntu 16.04.5 LTS
- Matplotlib version: 3.0.1
- Matplotlib backend (
print(matplotlib.get_backend())
): Qt5Agg - Python version: 3.6.6
- Jupyter version (if applicable): 7.1.1
- Other libraries:
- How I installed matplotlib: conda