Q-Q Plot of two samples’ quantiles.
Can take either two ProbPlot instances or two array-like objects. In the case of the latter, both inputs will be converted to ProbPlot instances using only the default values - so use ProbPlot instances if finer-grained control of the quantile computations is required.
Parameters: | data1, data2 : array-like (1d) or ProbPlot instances xlabel, ylabel : str or None
line : str {‘45’, ‘s’, ‘r’, q’} or None
ax : Matplotlib AxesSubplot instance, optional
|
---|---|
Returns: | fig : Matplotlib figure instance
|
See also
scipy.stats.probplot
Notes
Examples
>>> x = np.random.normal(loc=8.5, scale=2.5, size=37)
>>> y = np.random.normal(loc=8.0, scale=3.0, size=37)
>>> pp_x = sm.ProbPlot(x)
>>> pp_y = sm.ProbPlot(y)
>>> qqplot_2samples(pp_x, pp_y)