How do you assign output of plt.hist() to a variable so that it can be plotted by calling variable?

前端 未结 0 368
北海茫月
北海茫月 2020-11-29 07:37

I plot a histogram using the following:

import matplotlib.pyplot as plt
l = [0,0,1,1,1,2,3,3,4,4,4,4]
histogram = plt.hist(l, bins=5)
plt.show()
相关标签:
回答
  • 消灭零回复
提交回复
热议问题