render_plotly_figure_as_image_file# render_plotly_figure_as_image_file(figure, format='png', width=512, height=512)[source]# “Render Plotly figure as a static PNG image. See https://plotly.com/python/static-image-export/ https://plotly.github.io/plotly.py-docs/generated/plotly.io.write_image.html Parameters: format (str) – “png” or “svg” figure (Figure) – width (int) – height (int) – Return type: bytes