arctichoke.plot.save_hvplots
Functions
|
Save an hvplot to file. |
|
Save an html hvplot as a png. |
Module Contents
- arctichoke.plot.save_hvplots.save_hvplot(hvplot_to_save, save_as: str)
Save an hvplot to file.
Save the given hvplot as either an html or png file in the outputs/ directory.
- Parameters:
hvplot_to_save (A type of hvplot object) – The hvplot object to save to file.
save_as (str) – The file path within the outputs/ directory to which to save the plot. Must end in either .html or .png.
- Return type:
None
Examples
>>>
- arctichoke.plot.save_hvplots.html_to_png(html_filename: str, png_filename: str = None)
Save an html hvplot as a png.
Load a previously-saved html format plot from hvplot, launch a headless browser in which to load it, take a screenshot, and save it to a png file.
- Parameters:
html_filename (str) – The file path within the outputs/ directory to the html file of the hvplot.
png_filename (str, None, optional) – The file path within the outputs/ directory to which to save the png image, or None.
- Return type:
None
Examples
>>>