l bins that has count less than *cmin* or more than *cmax* will not be displayed (set to NaN before passing to `~.Axes.pcolormesh`) and these count values in the return value count histogram will also be set to nan upon return. Returns ------- h : 2D array The bi-dimensional histogram of samples x and y. Values in x are histogrammed along the first dimension and values in y are histogrammed along the second dimension. xedges : 1D array The bin edges along the x-axis. yedges : 1D array The bin edges along the y-axis. image : `~.matplotlib.collections.QuadMesh` Other Parameters ---------------- %(cmap_doc)s %(norm_doc)s %(vmin_vmax_doc)s alpha : ``0 <= scalar <= 1`` or ``None``, optional The alpha blending value. data : indexable object, optional DATA_PARAMETER_PLACEHOLDER **kwargs Additional parameters are passed along to the `~.Axes.pcolormesh` method and `~matplotlib.collections.QuadMesh` constructor. See Also -------- hist : 1D histogram plotting hexbin : 2D histogram with hexagonal bins Notes ----- - Currently ``hist2d`` calculates its own axis limits, and any limits previously set are ignored. - Rendering the histogram with a logarithmic color scale is accomplished by passing a `.colors.LogNorm` instance to the *norm* keyword argument. Likewise, power-law normalization (similar in effect to gamma correction) can be accomplished with `.colors.PowerNorm`. )