import numpy as np import holoviews as hv hv.extension('bokeh') xs = np.linspace(-5,5,100) ys = -(xs-2)**3 curve = hv.Curve((xs,ys)).opts(color='#D3D3D3') curve * hv.Arrow(0,10, 'Inflection', 'v') np.random.seed(12) points = hv.Points(np.random.randn(100, 2)) (points * hv.Arrow(2, points['y'].min(), 'Min', 'v', arrowstyle='-[') * hv.Arrow(2, points['y'].max(), 'Max', '^', arrowstyle='-[')).redim.range(y=(-5, 5), x=(-3, 3))