metaseq.plotutils.MarginalHistScatter

class metaseq.plotutils.MarginalHistScatter(ax, hist_size=0.6, pad=0.05)[source]

Bases: object

Class to enable incremental appending of scatterplots, each of which generate additional marginal histograms.

Attributes

limits
xmax
xmin
ymax
ymin

Methods

add_legends([xhists, yhists, scatter]) Add legends to axes.
append(x, y, scatter_kwargs[, hist_kwargs, ...]) Adds a new scatter to self.scatter_ax as well as marginal histograms for the same data, borrowing addtional room from the axes.

Methods

__init__(ax[, hist_size, pad]) Class to enable incremental appending of scatterplots, each of which generate additional marginal histograms.
add_legends([xhists, yhists, scatter]) Add legends to axes.
append(x, y, scatter_kwargs[, hist_kwargs, ...]) Adds a new scatter to self.scatter_ax as well as marginal histograms for the same data, borrowing addtional room from the axes.
__init__(ax, hist_size=0.6, pad=0.05)[source]

Class to enable incremental appending of scatterplots, each of which generate additional marginal histograms.

add_legends(xhists=True, yhists=False, scatter=True, **kwargs)[source]

Add legends to axes.

append(x, y, scatter_kwargs, hist_kwargs=None, xhist_kwargs=None, yhist_kwargs=None, num_ticks=3, labels=None, hist_share=False, marginal_histograms=True)[source]

Adds a new scatter to self.scatter_ax as well as marginal histograms for the same data, borrowing addtional room from the axes.

Parameters:

x, y : array-like

Data to be plotted

scatter_kwargs : dict

Keyword arguments that are passed directly to scatter().

hist_kwargs : dict

Keyword arguments that are passed directly to hist(), for both the top and side histograms.

xhist_kwargs, yhist_kwargs : dict

Additional, margin-specific kwargs for the x or y histograms respectively. These are used to update hist_kwargs

num_ticks : int

How many tick marks to use in each histogram’s y-axis

labels : array-like

Optional NumPy array of labels that will be set on the collection so that they can be accessed by a callback function.

hist_share : bool

If True, then all histograms will share the same frequency axes. Useful for showing relative heights if you don’t want to use the hist_kwarg normed=True

marginal_histograms : bool

Set to False in order to disable marginal histograms and just use as a normal scatterplot.

Previous topic

metaseq.plotutils.input_ip_plots

This Page