hv_anndata.plotting.scanpy.stacked_violin¶
- hv_anndata.plotting.scanpy.stacked_violin(adata, /, xdim, ydim)¶
Stacked violin plot.
Groups data by xdim and ydim and then plots a single violin for each group.
- Parameters:
- adata
AnnData The AnnData object.
- xdim
AdDim The x dimension.
- ydim
AdDim The y dimension.
- adata
- Return type:
- Returns:
Examples
import hv_anndata.plotting.scanpy as hv_sc from hv_anndata import data, register, A register() adata = data.pbmc68k_processed() markers = ["C1QA", "PSAP", "CD79A", "CD79B", "CST3", "LYZ"] hv_sc.stacked_violin( adata[:, markers], A.var.index, A.obs["bulk_labels"] ).opts(hv.opts.Violin(aspect="square"))
WARNING:param.ViolinPlot01063: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01066: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01069: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01072: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01075: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01078: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01081: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01084: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01087: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01090: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01093: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01096: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01099: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01102: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01105: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01108: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01111: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01114: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01117: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01120: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01123: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01126: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01129: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01132: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01135: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01138: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01141: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01144: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01147: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01150: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01153: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01156: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01159: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01162: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01165: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01168: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01171: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01174: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01177: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01180: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01183: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01186: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01189: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01192: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01195: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01198: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01201: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01204: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01207: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01210: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01213: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01216: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01219: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01222: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01225: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01228: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01231: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01234: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01237: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
WARNING:param.ViolinPlot01240: aspect value was ignored because absolute width and height values were provided. Either supply explicit frame_width and frame_height to achieve desired aspect OR supply a combination of width or height and an aspect value.
import hv_anndata.plotting.scanpy as hv_sc from hv_anndata import data, register, A register() adata = data.pbmc68k_processed() markers = ["C1QA", "PSAP", "CD79A", "CD79B", "CST3", "LYZ"] hv_sc.stacked_violin( adata[:, markers], A.var.index, A.obs["bulk_labels"] ).opts(hv.opts.Violin(aspect="square"))
import hv_anndata.plotting.scanpy as hv_sc from hv_anndata import data, register, A register() adata = data.pbmc68k_processed() markers = ["C1QA", "PSAP", "CD79A", "CD79B", "CST3", "LYZ"] hv_sc.stacked_violin( adata[:, markers], A.var.index, A.obs["bulk_labels"] ).opts(hv.opts.Violin(aspect="square"))
WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']WARNING:param.main: Option 'inner' for Violin type not valid for selected backend ('plotly'). Option only applies to following backends: ['bokeh', 'matplotlib']