bayspar.densityplot¶
-
bayspar.
densityplot
(prediction, x=None, xlabel=None, ax=None)¶ Plot density of prediction prior and posterior
Parameters: - prediction : bayspar.predict.Prediction
MCMC prediction
- x : numpy.ndarray, optional
Array over which to evaluate the densities. Default is numpy.arange(0, 40.1, 0.1).
- xlabel : string, optional
String label for x-axis.
- ax : matplotlib.Axes, optional
Axes to plot onto.
Returns: - ax : matplotlib.Axes