Static Image Export
Convert a DeephavenFigure to a static image using the to_image_uri method.
In order to use this feature, you need to have the kaleido package installed.
Either install with all extras or install kaleido separately.
or
Warning
The image is generated on the server, so it does not have access to client-side information such as timezones or theme.
The theme is customizable with the template argument, but the default is not the same as a client theme.
to_image
The to_image method allows you to export a DeephavenFigure to bytes, which can be embedded as an image.
Theme Template
Customize the theme with the template argument.
Default options are:
"plotly""plotly_white""plotly_dark""ggplot2""seaborn""simple_white".
Image Format
Customize the format with the format argument.
Options are "png", "jpg", "jpeg", "webp", "svg", and "pdf".
Image Size
Customize the size with the width and height arguments. The values are in pixels.
Write to a File
Export the image to bytes using the to_image method, then write the bytes to a file.