コード例 #1
0
p = Scatter(d,
            x="Horsepower",
            y='CityMPG',
            title='Mileage Vs Horsepwoer',
            xlabel='Horsepower',
            ylabel="Mileage")

output_file('scatter.html')
show(p)

from bokeh.plotting import figure, output_file, show

p = figure(plot_width=500, plot_height=400)

p.diamond(d['CityMPG'], d['HighwayMPG'], color='blue', alpha=0.5, size=5)

output_file('scatter_plotting.html')
show(p)

from bokeh.models import HoverTool, ColumnDataSource

from bokeh.palettes import Viridis6

from bokeh.plotting import figure, show, output_notebook
from bokeh.sampledata.us_counties import data as counties
from bokeh.sampledata.unemployment import data as unemployment

counties = {
    code: county
    for code, county in counties.items() if county["state"] == "tx"