:py:mod:`km3pipe.plot` ====================== .. py:module:: km3pipe.plot .. autoapi-nested-parse:: Common Plotting utils. .. !! processed by numpydoc !! Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: km3pipe.plot.get_ax km3pipe.plot.diag km3pipe.plot.automeshgrid km3pipe.plot.meshgrid km3pipe.plot.bincenters km3pipe.plot.prebinned_hist km3pipe.plot.plot_convexhull .. py:function:: get_ax(ax=None) Grab last ax if none specified, or pass through. .. !! processed by numpydoc !! .. py:function:: diag(ax=None, linecolor='0.0', linestyle='--', **kwargs) Plot the diagonal. .. !! processed by numpydoc !! .. py:function:: automeshgrid(x, y, step=0.02, xstep=None, ystep=None, pad=0.5, xpad=None, ypad=None) Make a meshgrid, inferred from data. .. !! processed by numpydoc !! .. py:function:: 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. .. !! processed by numpydoc !! .. py:function:: bincenters(bins) Bincenters, assuming they are all equally spaced. .. !! processed by numpydoc !! .. py:function:: prebinned_hist(counts, binlims, ax=None, *args, **kwargs) Plot a histogram with counts, binlims already given. .. rubric:: Examples >>> gaus = np.random.normal(size=100) >>> counts, binlims = np.histogram(gaus, bins='auto') >>> prebinned_hist(countsl binlims) .. !! processed by numpydoc !! .. py:function:: plot_convexhull(xy, ax=None, plot_points=True)