FixedCentre

class pysac.plot.FixedCentre(vmin=None, vmax=None, clip=False)[source] [edit on github]

Bases: matplotlib.colors.Normalize

Normalise with a Fixed Centre

If vmin or vmax is not given, they are taken from the input’s minimum and maximum value respectively. If clip is True and the given value falls outside the range, the returned value will be 0 or 1, whichever is closer. Returns 0 if:

vmin==vmax

Works with scalars or arrays, including masked arrays. If clip is True, masked values are set to 1; otherwise they remain masked. Clipping silently defeats the purpose of setting the over, under, and masked colors in the colormap, so it is likely to lead to surprises; therefore the default is clip = False.

Methods Summary

__call__(value[, clip])

Methods Documentation

__call__(value, clip=None)[source] [edit on github]