Posted at

HoloViewsのplot rangeの設定

More than 1 year has passed since last update.


holoviews のplot rangeの設定

import holoviews as hv

hv.extension('bokeh')

x = [0,1,2,3]
y = [0,1,4,8]
x_range = (-1, 5)
y_range = (-1, 10)

curve = hv.Curve((x,y))
# ここでrangeを設定
curve = curve.redim(x=dict(range=x_range), y=dict(range=y_range))

renderer = hv.renderer('bokeh')
renderer.save(plot_curve, './result.html')