qq_plot#
- class braintools.visualize.qq_plot(data, distribution='norm', ax=None, figsize=(8, 8), color='blue', alpha=0.7, line_color='red', title=None, **kwargs)#
Create Q-Q plot to compare data against theoretical distribution.
- Parameters:
data (
ndarray) – Data to compare.distribution (
str) – Theoretical distribution: ‘norm’, ‘uniform’, ‘expon’.ax (
Axes|None) – Axes to plot on.figsize (
Tuple[float,float]) – Figure size if creating new figure.color (
str) – Point color.alpha (
float) – Alpha transparency.line_color (
str) – Reference line color.**kwargs – Additional arguments passed to scatter.
- Returns:
ax – The axes object containing the plot.
- Return type:
Axes