missionbio.mosaic.utils.static_fig#

missionbio.mosaic.utils.static_fig(fig: plotly.graph_objs._figure.Figure, figsize: tuple = (7, 7), scale: float = 3, ax: Any = None) Any#

Convert plotly figure to matplotlib.

Parameters
figplotly.graph_objects.Figure

The figure to convert to a static image

figsize2-tuple

The size of the matplotlib figure in case no axis is provided.

scalefloat (default: 3)

The scale factor used when exporting the figure. A value greater than 1 increases the resolution of the plotly figure and a value less than 1 reduces the resolution of the plotly figure.

axmatplotlib.pyplot.axis

The axis to show the image on.