bokeh.models Interfacebokeh.models.annotationsbokeh.models.axesbokeh.models.callbacksbokeh.models.formattersbokeh.models.glyphsbokeh.models.gridsbokeh.models.map_plotsbokeh.models.mappersbokeh.models.markersbokeh.models.plotsbokeh.models.rangesbokeh.models.renderersbokeh.models.sourcesbokeh.models.tickersbokeh.models.toolsbokeh.models.widgetbokeh.models.widgets.buttonsbokeh.models.widgets.dialogsbokeh.models.widgets.groupsbokeh.models.widgets.iconsbokeh.models.widgets.inputsbokeh.models.widgets.layoutsbokeh.models.widgets.markupsbokeh.models.widgets.panelsbokeh.models.widgets.tablesbokeh.validation Package
bokeh.plotting Interfacebokeh.charts Interface
< stocks_timeseries_chart | back to Gallery | ggplot_line >
from ggplot import aes, diamonds, geom_density, ggplot
import matplotlib.pyplot as plt
from bokeh import mpl
from bokeh.plotting import output_file, show
g = ggplot(diamonds, aes(x='price', color='cut')) + geom_density()
g.draw()
plt.title("Density ggplot-based plot in Bokeh.")
output_file("density.html")
show(mpl.to_bokeh())