simpeg.utils.GaussianMixtureWithPrior.plot_pdf#
- GaussianMixtureWithPrior.plot_pdf(ax=None, flag2d=False, x_component=None, y_component=None, padding=0.2, plotting_precision=100, plot_membership=False, contour_opts=None, level_opts=None)[source]#
Utils to plot the marginal PDFs of a GMM, either in 1D or 2D (1 or 2 physical properties at the time).
- Parameters:
- ax
matplotlib.Axes
,optional
Matplotliv axes object. Need to be a 3-array if flag2d is True
- flag2dbool, default:
False
Flag to either plot a 1D or 2D probability distributions
- x_component
int
,optional
Physical property to plot on the X-axis, as ordered in the GMM.
- y_component
int
,optional
Physical property to plot on the Y-axis, as ordered in the GMM
- padding
float
, default: 0.2 How much relative padding around the petrophysical means for the 1D and 2D plots
- plotting_precision
int
, default: 100 Number of divisions for the 1D and 2D plots
- plot_membershipbool, default:
False
Plot the membership rather than the probability
- contour_opts
dict
Modify the plotting options of the contour plot (in 1D and 2D)
- level_opts
dict
Modify the plotting options of the level plot (in 1D and 2D)
- ax
- Returns:
matplotlib.Axes
Axes including the plot