MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_gamma

Method set_gamma

lib/matplotlib/colors.py:1180–1183  ·  view source on GitHub ↗

Set a new gamma value and regenerate colormap.

(self, gamma)

Source from the content-addressed store, hash-verified

1178 self._update_lut_extremes()
1179
1180 def set_gamma(self, gamma):
1181 """Set a new gamma value and regenerate colormap."""
1182 self._gamma = gamma
1183 self._init()
1184
1185 @staticmethod
1186 def from_list(name, colors, N=256, gamma=1.0, *, bad=None, under=None, over=None):

Callers

nothing calls this directly

Calls 1

_initMethod · 0.95

Tested by

no test coverage detected