1- import copy
1+ import copy
22
33import numpy
44from matplotlib import pyplot
@@ -81,8 +81,9 @@ def probplot(data, ax=None, plottype='prob', dist=None, probax='x',
8181 specified within ``scatter_kws`` and ``line_kws``.
8282
8383 .. note::
84- Users should not specify the parameter. It is inteded to only
85- be used by seaborn when operating within a FacetGrid.
84+ Users should not specify this parameter. It is inteded to
85+ only be used by seaborn when operating within a
86+ ``FacetGrid``.
8687
8788 label : string, optional
8889 A directly-specified legend label for the data series. This
@@ -91,8 +92,9 @@ def probplot(data, ax=None, plottype='prob', dist=None, probax='x',
9192 data series label should be specified within ``scatter_kws``.
9293
9394 .. note::
94- Users should not specify the parameter. It is inteded to only
95- be used by seaborn when operating within a FacetGrid.
95+ Users should not specify this parameter. It is inteded to
96+ only be used by seaborn when operating within a
97+ ``FacetGrid``.
9698
9799
98100 Returns
@@ -415,16 +417,21 @@ def fit_line(x, y, xhat=None, fitprobs=None, fitlogs=None, dist=None,
415417 Defines how data should be transformed. Valid values are
416418 'x', 'y', or 'both'. If using ``fitprobs``, variables should
417419 be expressed as a percentage, i.e.,
418- Probablility transform = lambda x: ``dist``.ppf(x / 100.).
419- Log transform = lambda x: numpy.log(x).
420+ for a probablility transform, data will be transformed with
421+ ``lambda x: dist.ppf(x / 100.)``.
422+ For a log transform, ``lambda x: numpy.log(x)``.
420423 Take care to not pass the same value to both ``fitlogs`` and
424+ <<<<<<< 801b29f5fb36417255ee93a7fe704cc1360cb89c
421425 ``figprobs`` as both transforms will be applied.
422426
427+ =======
428+ ``fitprobs`` as both transforms will be applied.
429+ >>>>>>> fix minor doc typos
423430 dist : distribution, optional
424431 A fully-spec'd scipy.stats distribution-like object
425432 such that ``dist.ppf`` and ``dist.cdf`` can be called. If not
426433 provided, defaults to a minimal implementation of
427- scipt.stats.norm.
434+ `` scipt.stats.norm`` .
428435
429436 estimate_ci : bool, optional (False)
430437 Estimate and draw a confidence band around the best-fit line
@@ -463,12 +470,12 @@ def fit_line(x, y, xhat=None, fitprobs=None, fitlogs=None, dist=None,
463470
464471 # maybe compute ppf of x
465472 if fitprobs in ['x' , 'both' ]:
466- x = dist .ppf (x / 100. )
473+ x = dist .ppf (x / 100. )
467474 xhat = dist .ppf (numpy .array (xhat )/ 100. )
468475
469476 # maybe compute ppf of y
470477 if fitprobs in ['y' , 'both' ]:
471- y = dist .ppf (y / 100. )
478+ y = dist .ppf (y / 100. )
472479
473480 # maybe compute log of x
474481 if fitlogs in ['x' , 'both' ]:
0 commit comments