Cnv.update_coloraxis

Cnv.update_coloraxis#

missionbio.mosaic.cnv.Cnv.update_coloraxis

static Cnv.update_coloraxis(fig: Union[Figure, FigureWidget], layer: Union[str, ndarray], coloraxis: int = 1, selector: Optional[Callable] = None, **kwargs: Any) None#

Sets the colorscale for DNA.

Parameters:
figplotly.Figure

The figure whose layout has to be updated.

layerstr

The layer according to which the coloraxis has to be updated.

coloraxisint

The coloraxis to update.

selectorCallable

A function whose input is the trace object and the output is a bool. This function is used to determine the traces whose line color has to be updated. Useful for the heatmap which has Scatterplots for horizontal and vertical lines whose color has to be changed to match the layers coloraxis.

kwargsdict

They have no effect for Cnv coloraxis.


< Class Cnv