plot_main_effects¶
-
pyapprox.sensitivity_analysis.
plot_main_effects
(main_effects, ax, truncation_pct=0.95, max_slices=5, rv='z', qoi=0)[source]¶ Plot the main effects in a pie chart showing relative size.
- Parameters
- main_effectsnp.ndarray (nvars,nqoi)
The variance based main effect sensitivity indices
- ax
matplotlib.pyplot.axes.Axes
Axes that will be used for plotting
- truncation_pctfloat
The proportion \(0<p\le 1\) of the sensitivity indices effects to plot
- max_slicesinteger
The maximum number of slices in the pie-chart. Will only be active if the turncation_pct gives more than max_slices
- rvstring
The name of the random variables when creating labels
- qoiinteger
The index 0<qoi<nqoi of the quantitiy of interest to plot