metaseq.plotutils.add_labels_to_subsets

metaseq.plotutils.add_labels_to_subsets(ax, subset_by, subset_order, text_kwargs=None, add_hlines=True, hline_kwargs=None)[source]

Helper function for adding labels to subsets within a heatmap.

Assumes that imshow() was called with subsets and subset_order.

Parameters:

ax : matplotlib.Axes

The axes to label. Generally you can use fig.array_axes attribute of the Figure object returned by metaseq.plotutils.imshow.

subset_by, subset_order : array, list

See metaseq.plotutils.imshow() docstring; these should be the same subsets and subset_order that were provided to that function.