[英]Plotting histogram using matplotlib
This is the graph that I am unable to plot in matplotlib using python.这是我无法使用 python 在 matplotlib 中绘制的图形。
How could I plot such plot?我怎么能策划这样的情节?
Try:尝试:
from matplotlib import pyplot as plt
n, bins, params = plt.hist(arrival_delay)
Assuming the data you want to histogram is stored in arrival delay
.假设要直方图的数据存储在arrival delay
。 Read matplotlib.pyplot.hist documentation for more info.阅读matplotlib.pyplot.hist文档了解更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.