Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def matplotlib::pylab::clim (   vmin = None,
  vmax = None 
)

Set the color limits of the current image

To apply clim to all axes images do

clim(0, 0.5)

If either vmin or vmax is None, the image min/max respectively
will be used for color scaling.

If you want to set the clim of multiple images,
use, for example for im in gca().get_images(): im.set_clim(0,
0.05)

Definition at line 703 of file pylab.py.

00703                               :
    """
    Set the color limits of the current image

    To apply clim to all axes images do

    clim(0, 0.5)

    If either vmin or vmax is None, the image min/max respectively
    will be used for color scaling.

    If you want to set the clim of multiple images,
    use, for example for im in gca().get_images(): im.set_clim(0,
    0.05)

    """
    im = gci()
    if im is None:
        raise RuntimeError('You must first define an image, eg with imshow')

    im.set_clim(vmin, vmax)
    draw_if_interactive()

def close(*args):


Generated by  Doxygen 1.6.0   Back to index