lisc.plts.counts.plot_vector

lisc.plts.counts.plot_vector(data, dim='A', labels=None, transpose=False, cmap='purple', ax=None, **kwargs)[source]

Plot a vector as an annotated heatmap.

Parameters
dataCounts1D or Counts or 1d array

Data to plot as a heatmap.

dim{‘A’, ‘B’}, optional

Which set of terms to plot. Only used if data is a Counts object.

labelslist of str, optional

Labels for the figure.

transposebool, optional, default: False

Whether to transpose the data before plotting.

cmap{‘purple’, ‘blue’} or matplotlib.cmap

Colormap to use for the plot. If string, uses a sequential palette of the specified color.

axmatplotlib.Axes, optional

Figure axes upon which to plot.

**kwargs

Additional keyword arguments to pass through to seaborn.heatmap.