Instrumente de configurare

Vizualizare interactivă a datelor cu Bokeh

George Boorman

Core Curriculum Manager, DataCamp

Bara de instrumente implicită

  • PanTool
    • pan Pan
  • BoxZoomTool
    • box_zoom Box Zoom
  • WheelZoomTool
    • wheel_zoom Wheel Zoom
  • Save
    • save Salvare
  • Reset
    • reset Resetare

bara_implicita

Vizualizare interactivă a datelor cu Bokeh

Instrumente de configurare

Vom acoperi:

  • Instrumente Pan/Drag

  • Instrumente Clic/Tap

  • Instrumente Scroll/Pinch

 

Alte instrumente (în afara cursului):

  • Acțiuni

  • Inspectori

  • Instrumente de editare

1 http://docs.bokeh.org/en/latest/docs/user_guide/tools.html
Vizualizare interactivă a datelor cu Bokeh

Instrumente pan/drag

  • PanTool

    • pan Pan
  • BoxSelectTool

    • box_select Box Select
  • BoxZoomTool

    • box_zoom Box Zoom
  • LassoSelectTool

    • lasso_select Lasso Select

Video Pan

Selecție Lasso

Vizualizare interactivă a datelor cu Bokeh

Instrumente clic/tap

 

  • PolySelectTool
    • poly_select PolySelect

 

 

  • TapTool
    • tap Tap

Demo PolySelect

 

Demo Tap

Vizualizare interactivă a datelor cu Bokeh

Instrumente scroll/ciupire

  • WheelZoomTool
    • wheel_zoom Wheel Zoom

 

 

  • WheelPanTool Wheel Pan
    • xwheel_pan
    • ywheel_pan

Demo Wheel Zoom

Vizualizare interactivă a datelor cu Bokeh

Personalizarea barei de instrumente

from bokeh.models import BoxSelectTool

fig = figure(x_axis_label="Steals per Game", y_axis_label="Assists per Game") fig.circle(x=nba["steals"], y=nba["assists"])
fig.add_tools(BoxSelectTool())
output_file(filename="adding_box_select.html") show(fig)

Adăugare BoxSelect

Vizualizare interactivă a datelor cu Bokeh

Listă personalizată de instrumente

tools = ["lasso_select", "box_zoom", "tap"]

fig = figure(x_axis_label="Steals", y_axis_label="Assists",
tools=tools)
fig.circle(x=nba["steals"], y=nba["assists"]) output_file(filename="custom_tools.html") show(fig)

  Listă instrumente

Vizualizare interactivă a datelor cu Bokeh

Să exersăm!

Vizualizare interactivă a datelor cu Bokeh

Preparing Video For Download...