km3pipe.plot

Common Plotting utils.

Module Contents

Functions

hexbin(x, y, color=’purple’, **kwargs) Seaborn-compatible hexbin plot.
get_ax(ax=None) Grab last ax if none specified, or pass through.
diag(ax=None, linecolor=‘0.0’, linestyle=’–’, **kwargs) Plot the diagonal.
automeshgrid(x, y, step=0.02, xstep=None, ystep=None, pad=0.5, xpad=None, ypad=None) Make a meshgrid, inferred from data.
meshgrid(x_min, x_max, x_step, y_min=None, y_max=None, y_step=None) Make a meshgrid, e.g. when plotting decision surfaces.
prebinned_hist(counts, binlims, ax=None, *args, **kwargs) Plot a histogram with counts, binlims already given.
joint_hex(x, y, **kwargs) Seaborn Joint Hexplot with marginal KDE + hists.
plot_convexhull(xy, ax=None, plot_points=True)
km3pipe.plot.HAS_SEABORN = True[source]
km3pipe.plot.hexbin(x, y, color='purple', **kwargs)[source]

Seaborn-compatible hexbin plot.

See also: http://seaborn.pydata.org/tutorial/axis_grids.html#mapping-custom-functions-onto-the-grid

km3pipe.plot.get_ax(ax=None)[source]

Grab last ax if none specified, or pass through.

km3pipe.plot.diag(ax=None, linecolor='0.0', linestyle='--', **kwargs)[source]

Plot the diagonal.

km3pipe.plot.automeshgrid(x, y, step=0.02, xstep=None, ystep=None, pad=0.5, xpad=None, ypad=None)[source]

Make a meshgrid, inferred from data.

km3pipe.plot.meshgrid(x_min, x_max, x_step, y_min=None, y_max=None, y_step=None)[source]

Make a meshgrid, e.g. when plotting decision surfaces.

km3pipe.plot.prebinned_hist(counts, binlims, ax=None, *args, **kwargs)[source]

Plot a histogram with counts, binlims already given.

km3pipe.plot.joint_hex(x, y, **kwargs)[source]

Seaborn Joint Hexplot with marginal KDE + hists.

km3pipe.plot.plot_convexhull(xy, ax=None, plot_points=True)[source]