midpointnorm#
- midpointnorm(vcenter=0, vmin=None, vmax=None)[source]#
Alias to Matplotlib’s TwoSlopeNorm. Used to place the center of the colormap somewhere other than the center of the data.
- Parameters:
Example:
data = np.random.rand(10,10) - 0.2 plt.pcolor(data, cmap='bi', norm=sc.midpointnorm())
New in version 1.2.0.