voyagerpy.plotting.plot_barcode_data#
- voyagerpy.plotting.plot_barcode_data(adata: AnnData, y: str | Sequence[str], x: str | None = None, obsm: str | None = None, ncol: int | None = None, cmap: None | str | ListedColormap | LinearSegmentedColormap = None, color_by: str | None = None, sharex: None | Literal['none', 'all', 'row', 'col'] | bool = None, sharey: None | str | bool = None, x_label: None | str | Sequence[str] = None, y_label: None | str | Sequence[str] = None, rc_context: Dict[str, Any] | None = None, ax: Axes | None = None, subplot_kwargs: Dict | None = None, **kwargs) ndarray#
Plot barcode data from adata.obs or adata.obsm.
If multiple features are provided, the data will be plotted in a grid.
- Parameters:
adata (AnnData) – The AnnData object to plot.
y (Union[str, Sequence[str]]) – The name of the column(s) to plot on the y-axis.
x (Optional[str], optional) – If not None, the name of the column(s) to plot on the x-axis, by default None,
obsm (Optional[str], optional) – If not None, use the columns from this obsm dataframe instead of obs , by default None.
ncol (Optional[int], optional) – The number of columns in the figure. If None, will use the number of x features, by default None.
cmap (Union[None, str, colors.ListedColormap, colors.LinearSegmentedColormap], optional) – The colormap to use, by default None.
color_by (Optional[str], optional) – The column name to use for coloring, by default None.
sharex (Union[None, Literal["none", "all", "row", "col"], bool], optional) – The sharex parameter to pass to matplotlib.pyplot.subplots, by default None.
sharey (Union[None, str, bool], optional) – The sharex parameter to pass to matplotlib.pyplot.subplots, by default None.
x_label (Union[None, str, Sequence[str]], optional) – The label to use for each x feature in the figure, by default None.
y_label (Union[None, str, Sequence[str]], optional) – The label to use for each y feature in the feature, by default None.
rc_context (Optional[Dict[str, Any]], optional) – matplotlib rc_context to override styling, by default None.
ax (Optional[Axes], optional) – The axes to draw on. If None, axes matching the number of features will be created, by default None.
subplot_kwargs (Optional[Dict], optional) – Parameters to pass to matplotlib.pyplot.subplots, by default None.
**kwargs – Additional arguments to pass to
plot_single_barcode_data().
- Returns:
An array of axes objects.
- Return type:
np.ndarray[plt.Axes]