/tests/tools.py
Python | 14 lines | 9 code | 5 blank | 0 comment | 0 complexity | e53c5802da191615e75e2fc04641e528 MD5 | raw file
- import pandas
- import bokeh
- from bokeh.functional import *
- df = pandas.read_csv("auto-mpg.csv")
- s = ggplot(df, aes("displ", "mpg", color="red")) + geom_point()
- s += tool_regression()
- u = ggplot(df, aes("hp", "weight")) + aes(color="green") + geom_point()
- u += tool_pan()
- u += tool_zoom()