bokeh.models
Interfacebokeh.models.annotations
bokeh.models.axes
bokeh.models.callbacks
bokeh.models.formatters
bokeh.models.glyphs
bokeh.models.grids
bokeh.models.map_plots
bokeh.models.mappers
bokeh.models.markers
bokeh.models.plots
bokeh.models.ranges
bokeh.models.renderers
bokeh.models.sources
bokeh.models.tickers
bokeh.models.tools
bokeh.models.widget
bokeh.models.widgets.buttons
bokeh.models.widgets.dialogs
bokeh.models.widgets.groups
bokeh.models.widgets.icons
bokeh.models.widgets.inputs
bokeh.models.widgets.layouts
bokeh.models.widgets.markups
bokeh.models.widgets.panels
bokeh.models.widgets.tables
bokeh.validation
Package
bokeh.plotting
Interfacebokeh.charts
Interface
< step | back to Gallery | violin >
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("xkcd-ggplot-mpl based plot in Bokeh.")
output_file("xkcd_density.html")
show(mpl.to_bokeh(xkcd=True))