Format:%pylab [--no-import-all] [GUI]
This command automatically loads the NumPy and matplotlib libraries in a ipython or notebook environment, consistent with the following statement functions
Import NumPy
Import Matplotlib
From matplotlib import Pylab, Mlab, Pyplot
NP = NumPy
PLT = Pyplot
From Ipython.display Import display
From IPython.core.pylabtools import Figsize, Getfigs
From Pylab Import *
From numpy Import *
If the--no-import-all option is passed, the last two statements above will not be executed
Optional GUI parameters
Specify matplotlib available backend, can be set parameters are, ' agg ', ' gtk ', ' gtk3 ', ' inline ', ' ipympl ', ' Nbagg ', ' notebook ', ' osx ', ' qt ', ' qt4 ', ' qt5 ', ' tk ', ' WX ', if this parameter is set, the corresponding backend is used, otherwise the default backend is used, or the default parameters can be modified in the Matplotlib configuration file.
Only the inline parameter in these parameters draws the chart directly on the Qtconsole or notebook, and the others are drawn in the new Popup dialog box.