Pylab (matplotlib) support utilities.
Activate the given backend and set interactive to True.
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]
Given a gui string return the gui and mpl backend.
Parameters : | gui : str
|
---|---|
Returns : | A tuple of (gui, backend) where backend is one of (‘TkAgg’,’GTKAgg’, : ‘WXAgg’,’Qt4Agg’,’module://IPython.zmq.pylab.backend_inline’). : |
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
|
---|
Import the standard pylab symbols into user_ns.
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. : |
Convert a figure to svg or png for inline display.
Activate pylab mode in the user’s namespace.
Loads and initializes numpy, matplotlib and friends for interactive use.
Parameters : | user_ns : dict
gui : optional, string
import_all : optional, boolean
|
---|---|
Returns : | The actual gui used (if not given as input, it was obtained from matplotlib : itself, and will be needed next to configure IPython’s gui integration. : |
Select figure format for inline backend, either ‘png’ or ‘svg’.
Using this method ensures only one figure format is active at a time.