pygsti.report.MidPointNorm¶
-
class
pygsti.report.
MidPointNorm
(midpoint=0, vmin=None, vmax=None, clip=False)¶ A class for normalizing data which takes on positive and negative values.
Taken from http://stackoverflow.com/questions/7404116/defining-the-midpoint-of-a-colormap-in-matplotlib
-
__init__
(midpoint=0, vmin=None, vmax=None, clip=False)
Methods
__init__
([midpoint, vmin, vmax, clip])autoscale
(A)Set vmin, vmax to min, max of A. autoscale_None
(A)autoscale only None-valued vmin or vmax inverse
(value)process_value
(value)Homogenize the input value for easy and efficient normalization. scaled
()return true if vmin and vmax set -