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

def matplotlib::pylab::switch_backend (   newbackend  ) 

Swtich the default backend to newbackend.  This feature is
EXPERIMENTAL, and is only expected to work switching to an image
backend.  Eg, if you have a bunch of PS scripts that you want to
run from an interactive ipython session, yuo may want to switch to
the PS backend before running them to avoid having a bunch of GUI
windows popup.  If you try to interactively switch from one GUI
backend to another, you will explode.

Calling this command will close all open windows.

Definition at line 1392 of file pylab.py.

01392                               :
    """
    Swtich the default backend to newbackend.  This feature is
    EXPERIMENTAL, and is only expected to work switching to an image
    backend.  Eg, if you have a bunch of PS scripts that you want to
    run from an interactive ipython session, yuo may want to switch to
    the PS backend before running them to avoid having a bunch of GUI
    windows popup.  If you try to interactively switch from one GUI
    backend to another, you will explode.

    Calling this command will close all open windows.
    """
    close('all')
    global new_figure_manager, draw_if_interactive, show
    matplotlib.use(newbackend)
    reload(backends)
    from backends import new_figure_manager, draw_if_interactive, show

def matshow(*args,**kw):


Generated by  Doxygen 1.6.0   Back to index