Plotting Bar Charts with Bokeh
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to plot a basic barchart but I keep seeing an error called 'StopIteration'. I am following an example, and the code seems fine: amount = bugrlary_dict.values() months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] print len(amount) print len(months) bar = Bar(amount, months, filename="bar.html") bar.title("Bar Chart of the Amount of Burglaries").xlabel("Months").ylabel("Amount") bar.show() 回答1: UPDATE this answer is out of date and will not work with Bokeh versions newer than 0.10 Please refer to