MultiMap.__init__#
missionbio.plotting.multimap.MultiMap.__init__
- MultiMap.__init__(datas: Sequence[DataFrame], y_groups: Sequence, names: Optional[Sequence[str]] = None, widths: Optional[Sequence[float]] = None, x_groups: Optional[Sequence[Optional[ndarray]]] = None, palette: Optional[Dict] = None, ytick_proportions: bool = False, title: str = '', extra_column_titles: Sequence[str] = (), label_drawn: bool = True)#
- Parameters:
- dataspd.DataFrame
The dataframe whose values are to be plotted. The index name is used for the title of the colorbar, the column names are shown on hovering over the heatmap.
- y_groupsnp.ndarray
The labels for each row.
- namesOptional[Sequence[str]]
The suffix for each heatmap trace’s and the scatter line trace’s name. It should have the same length as datas.
- widthsOptional[Sequence[float]]
The proportion of the figure space taken by the corresponding data. It should have the same length as datas + number of extra_columns
- x_groupsnp.ndarray
The label for each column. These must be contiguous. For example, [“1”, “2”, “2”] is permitted, but [“1”, “2”, “1”] is not. It should have the same length as datas.
- paletteOptional[Dict]
The dictionary with the color for each unique value in y_groups.
- ytick_proportionsbool
Whether to show the fraction of rows of each y_group on the y-axis ticks.
- titlestr
The title of the plot
- extra_column_titlesSequence[str]
The titles for the extra columns. The extra columns will be added to the left of the heatmaps, by default. These columns can be used to plot additional information, such as bar graphs. The position of the extra columns can be modified by passing the heatmap_columns argument to
missionbio.mosaic.plots.multimap.MultiMap.draw()
.- label_drawn: bool
Whether an extra heatmap trace with specific colors for each label should be created
- Returns:
- figplotly.graph_objects.Figure
< Class MultiMap