How to use the probscale.transforms.ProbTransform function in probscale

To help you get started, we’ve selected a few probscale examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matplotlib / mpl-probscale / probscale / probscale.py View on Github external
def __init__(self, axis, **kwargs):
        self.dist = kwargs.pop('dist', _minimal_norm)
        self.as_pct = kwargs.pop('as_pct', True)
        self.nonpos = kwargs.pop('nonpos', 'mask')
        self._transform = ProbTransform(self.dist, as_pct=self.as_pct)
github matplotlib / mpl-probscale / probscale / transforms.py View on Github external
def inverted(self):
        return ProbTransform(self.dist, as_pct=self.as_pct,
                             out_of_bounds=self.out_of_bounds)