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

def matplotlib::pylab::ylim (   args,
  kwargs 
)

Set/Get the ylimits of the current axes

ymin, ymax = ylim()   : return the current ylim
ylim( (ymin, ymax) )  : set the ylim to ymin, ymax
ylim( ymin, ymax )    : set the ylim to ymin, ymax

If you do not specify args, you can pass the ymin and ymax as
kwargs, eg

  ylim(ymax=3) # adjust the max leaving min unchanged
  ylim(ymin=1) # adjust the min leaving max unchanged

The new axis limits are returned as a length 2 tuple

Definition at line 1163 of file pylab.py.

01163                          :
    """
    Set/Get the ylimits of the current axes

    ymin, ymax = ylim()   : return the current ylim
    ylim( (ymin, ymax) )  : set the ylim to ymin, ymax
    ylim( ymin, ymax )    : set the ylim to ymin, ymax

    If you do not specify args, you can pass the ymin and ymax as
    kwargs, eg

      ylim(ymax=3) # adjust the max leaving min unchanged
      ylim(ymin=1) # adjust the min leaving max unchanged

    The new axis limits are returned as a length 2 tuple

    """
    ax = gca()
    ret = ax.set_ylim(*args, **kwargs)
    draw_if_interactive()
    return ret




def xticks(*args, **kwargs):


Generated by  Doxygen 1.6.0   Back to index