import holoviews as hv
hv.extension('bokeh')
g = hv.Curve([1,2,4],label='line1').options(width=400,height=300) * hv.Curve([1,4,8],label='line2')
hv.save(g,'holoviews.html')
g
%matplotlib inline
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(4.0, 3.0))
ax.plot([1,2,4],label='line1')
ax.plot([1,4,8],label='line2')
ax.legend()
plt.savefig('matplotlib.svg')
import holoviews as hv
hv.extension('matplotlib')
g = hv.Curve([1,2,4],label='line1').options(aspect=1.333, fig_size=150) * hv.Curve([1,4,8],label='line2')
hv.save(g,'holoviews.svg')
g