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

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

Add an axes at positon rect specified by::

axes() by itself creates a default full subplot(111) window axis

axes(rect, axisbg='w') where rect=[left, bottom, width, height] in
normalized (0,1) units.  axisbg is the background color for the
axis, default white

axes(h) where h is an axes instance makes h the
current axis An Axes instance is returned

kwargs:

  axisbg=color   : the axes background color
  frameon=False  : don't display the frame
  sharex=otherax : the current axes shares xaxis attribute with otherax
  sharey=otherax : the current axes shares yaxis attribute with otherax

Examples

  examples/axes_demo.py places custom axes.
  examples/shared_axis_demo.py uses sharex and sharey


Definition at line 568 of file pylab.py.

00568                          :
    """
    Add an axes at positon rect specified by::

    axes() by itself creates a default full subplot(111) window axis

    axes(rect, axisbg='w') where rect=[left, bottom, width, height] in
    normalized (0,1) units.  axisbg is the background color for the
    axis, default white

    axes(h) where h is an axes instance makes h the
    current axis An Axes instance is returned

    kwargs:

      axisbg=color   : the axes background color
      frameon=False  : don't display the frame
      sharex=otherax : the current axes shares xaxis attribute with otherax
      sharey=otherax : the current axes shares yaxis attribute with otherax

    Examples

      examples/axes_demo.py places custom axes.
      examples/shared_axis_demo.py uses sharex and sharey


    """

    nargs = len(args)
    if len(args)==0: return subplot(111, **kwargs)
    if nargs>1:
        raise TypeError('Only one non keyword arg to axes allowed')
    arg = args[0]

    if isinstance(arg, Axes):
        a = gcf().sca(arg)
    else:
        rect = arg
        a = gcf().add_axes(rect, **kwargs)
    draw_if_interactive()
    return a

def delaxes(*args):


Generated by  Doxygen 1.6.0   Back to index