LoginSignup
0
1

More than 5 years have passed since last update.

HoloViewsのplot rangeの設定

Posted at

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')
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1