Skip to content

plot_qq


method plot_qq(columns=0, distributions="norm", title=None, figsize=(10, 6), filename=None, display=True) [source]

Plot a quantile-quantile plot.

Parameters:

columns: int, str, slice or sequence, optional (default=0)
Slice, names or indices of the columns to plot. Selected categorical columns are ignored.

distributions: str, sequence or None, optional (default="norm")
Name of the scipy.stats distributions to fit to the columns.

title: str or None, optional (default=None)
Plot's title. If None, the title is left empty.

figsize: tuple, optional (default=(10, 6)))
Figure's size, format as (x, y).

filename: str or None, optional (default=None)
Name of the file. Use "auto" for automatic naming. If None, the figure is not saved.

display: bool or None, optional (default=True)
Whether to render the plot. If None, it returns the matplotlib figure.

Returns: matplotlib.figure.Figure
Plot object. Only returned if display=None.


Example

from atom import ATOMClassifier

atom = ATOMClassifier(X, y)
atom.plot_qq(columns=[0, 1], distributions="triang")
plot_qq
Back to top