def _create_figure(histogram, **kwargs):
title = histogram.title or "Histogram"
axis_names = histogram.axis_names or ["x", "y"]
if len(axis_names) == 1:
axis_names = list(axis_names) + ["frequency"]
from bokeh.plotting import figure
return figure(tools="hover,save,pan,box_zoom,reset,wheel_zoom",
toolbar_location='above',
x_axis_label=axis_names[0], y_axis_label=axis_names[1],
title=title)
# All palette names that can be used in cmap argument
评论列表
文章目录