environmentaltools.graphics.qq
- environmentaltools.graphics.qq(data, prob_model='norm', marker='.', color='k', line='45', ax=None, label=None, fname=None)[source]
Draw QQ-plot comparing data against theoretical distribution.
Creates a quantile-quantile plot to assess how well data matches a specified probability distribution.
- Parameters:
data (pd.DataFrame) – Time series data to plot.
prob_model (str) – Name of scipy.stats probability distribution. Defaults to ‘norm’.
marker (str) – Matplotlib marker style. Defaults to ‘.’.
color (str) – Color for data points. Defaults to ‘k’ (black).
line (str) – Reference line style (‘45’, ‘s’, ‘r’, ‘q’, or None). Defaults to ‘45’.
ax (matplotlib.axes.Axes, optional) – Axis for the plot. Creates new if None. Defaults to None.
label (str, optional) – Label for the data. Defaults to None.
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