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
Milestone
Description
Compare bar:
importnumpyimportmatplotlib.pyplotaspltfig,ax=plt.subplots(1,1)hist1=ax.hist(1,bins=1,normed=False,log=True,histtype='bar',label='No bottom',alpha=1,facecolor='red')offset=1e-9ax.set_ylim(1e-4,1.1)ax.legend()plt.show()
to stepfilled:
importnumpyimportmatplotlib.pyplotaspltfig,ax=plt.subplots(1,1)hist1=ax.hist(1,bins=1,normed=False,log=True,histtype='stepfilled',label='No bottom',alpha=1,facecolor='red')offset=1e-9ax.set_ylim(1e-4,1.1)ax.legend()plt.show()
Setting bottom is not really a correct solution since it shifts the top of the bar with the same amount