Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
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]
Print a figure to an image, and return the resulting bytes
Any keyword args are passed to fig.canvas.print_figure, such as quality or bbox_inches.
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 formats for the inline backend.
Parameters: | shell : InteractiveShell
formats : str or set
**kwargs : any
|
---|
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 |
---|