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

Method set_clim

lib/matplotlib/colorizer.py:366–382  ·  view source on GitHub ↗

Set the norm limits for image scaling. Parameters ---------- vmin, vmax : float The limits. For scalar data, the limits may also be passed as a tuple (*vmin*, *vmax*) as a single positional argument. .. ACCEPTS:

(self, vmin=None, vmax=None)

Source from the content-addressed store, hash-verified

364 return self._colorizer.get_clim()
365
366 def set_clim(self, vmin=None, vmax=None):
367 """
368 Set the norm limits for image scaling.
369
370 Parameters
371 ----------
372 vmin, vmax : float
373 The limits.
374
375 For scalar data, the limits may also be passed as a
376 tuple (*vmin*, *vmax*) as a single positional argument.
377
378 .. ACCEPTS: (vmin: float, vmax: float)
379 """
380 # If the norm's limits are updated self.changed() will be called
381 # through the callbacks attached to the norm
382 self._colorizer.set_clim(vmin, vmax)
383
384 def get_alpha(self):
385 try:

Callers

nothing calls this directly

Calls 1

set_climMethod · 0.45

Tested by

no test coverage detected