environmentaltools.graphics.probplot
- environmentaltools.graphics.probplot(data, ax=None, fit=True, fname=None)[source]
Plot probability plot using statsmodels.
Creates a probability plot to assess distributional assumptions with optional distribution fit.
- Parameters:
data (pd.DataFrame or array-like) – Data values to plot.
ax (matplotlib.axes.Axes, optional) – Axis for the plot. Creates new if None. Defaults to None.
fit (bool) – If True, fits a distribution to the data. Defaults to True.
fname (str, optional) – File path to save the plot. If None, displays interactively. Defaults to None.
- Returns:
The axis with the plot.
- Return type:
matplotlib.axes.Axes