Please take a look at this Google Colab file: https://colab.research.google.com/drive/1Gxzq7gsrCqsFkxZ6VfjeYlsYCbcMRAJk#scrollTo=6t56axKNdBi0&forceEdit=true&sandboxMode=true
The HoloView code is as follows:
import holoviews as hv from holoviews import opts from holoviews import streams %env HV_DOC_HTML=true hv.extension('bokeh') path = hv.Path() freehand = hv.streams.FreehandDraw(source=path, num_objects=3) path.opts( opts.Path(active_tools=['freehand_draw'], height=400, line_width=10, width=400)) hv.save(path, 'fig1.png', backend='matplotlib')
I am attempting to sketch a prediction of a curve onto an empty x-y coordinate system and save the resulting figure as a png to be called back for later use. However, I do not want to use the “Save” tool, since this sends a download of the png to the “Downloads” folder on my computer.
In the Colab file provided, when hv.save is run, the image that gets saved is the figure but before I have drawn anything on it.
In other words, the line that I am drawing on the output is not saving to the png.
Any help would be great.