pynbody.plot.generic.prob_plot#
- pynbody.plot.generic.prob_plot(x, y, weight, nbins=(100, 100), extent=None, axes=None, **kwargs)[source]#
Make a plot of the probability of y given x, i.e. p(y|x). The values are normalized such that the integral along each column is one.
Input:
x: primary binning axis
y: secondary binning axis
weight: weights array
nbins: tuple of length 2 specifying the number of bins in each direction
- extent: tuple of length 4 speciphysical extent of the axes
(xmin,xmax,ymin,ymax)
Optional Keywords:
all optional keywords are passed on to the imshow() command