Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
Pylab (matplotlib) support utilities.
Get a list of matplotlib figures by figure numbers.
If no arguments are given, all available figures are returned. If the argument list contains references to invalid figures, a warning is printed but the function continues pasting further figures.
Parameters: | figs : tuple
|
---|
Set the default figure size to be [sizex, sizey].
This is just an easy to remember, convenience wrapper that sets:
matplotlib.rcParams['figure.figsize'] = [sizex, sizey]
Convert a figure to svg or png for inline display.
format a figure as a pixel-doubled (retina) PNG
Factory to return a matplotlib-enabled runner for %run.
Parameters: | safe_execfile : function
|
---|---|
Returns: | A function suitable for use as the ``runner`` argument of the %run magic : function. : |
Select figure format for inline backend, can be ‘png’, ‘retina’, or ‘svg’.
Using this method ensures only one figure format is active at a time.
Given a gui string return the gui and mpl backend.
Parameters: | gui : str
gui_select : str
|
---|---|
Returns: | A tuple of (gui, backend) where backend is one of (‘TkAgg’,’GTKAgg’, : ‘WXAgg’,’Qt4Agg’,’module://IPython.kernel.zmq.pylab.backend_inline’). : |
Activate the given backend and set interactive to True.
Populate the namespace with pylab-related values.
Imports matplotlib, pylab, numpy, and everything from pylab and numpy.
Also imports a few names from IPython (figsize, display, getfigs)
Configure an IPython shell object for matplotlib use.
Parameters: | shell : InteractiveShell instance backend : matplotlib backend |
---|