You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently hv.output(example_holomap, fig='png') will not return a 'png' of the plot + widget as a '.png' - what I would call a 'screenshot' mode. I don't believe there is currently a way to do this.
This functionality would come in handy when building a notebook that displays incremental steps in building an application, but you do not want interactive versions of the intermediate steps of the application, and you don't want to have to save a png to file.
Code
importnumpyasnpimportholoviewsashvhv.extension('bokeh')
frequencies= [0.5, 0.75, 1.0, 1.25]
defsine_curve(phase, freq):
xvals= [0.1*iforiinrange(100)]
returnhv.Curve((xvals, [np.sin(phase+freq*x) forxinxvals])).opts(tools=['hover'])
curve_dict= {f:sine_curve(0,f) forfinfrequencies}
hmap=hv.HoloMap(curve_dict, kdims='frequency')
hv.output(hmap, fig='png') # same interactive result as just running `hmap`
The text was updated successfully, but these errors were encountered:
Currently
hv.output(example_holomap, fig='png')
will not return a 'png' of the plot + widget as a '.png' - what I would call a 'screenshot' mode. I don't believe there is currently a way to do this.This functionality would come in handy when building a notebook that displays incremental steps in building an application, but you do not want interactive versions of the intermediate steps of the application, and you don't want to have to save a png to file.
Code
The text was updated successfully, but these errors were encountered: