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.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.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.