From: Darren D. <dd...@co...> - 2005-03-07 17:08:17
|
Hi Andrea, On Monday 07 March 2005 11:54 am, and...@ti... wrote: > > I am following the embedding_in_wx.py example. If effect, I never use the > syntaxes: > > from pylab import > import pylab > > and so on. I just "copied" the embedding_in_wx.py module and I have adapted > it for my purposes. This is my import section: > > from matplotlib import use as matuse > matuse('WXAgg') > from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as > FigureCanvas from matplotlib.backends.backend_wx import > NavigationToolbar2Wx > > from matplotlib.figure import Figure > > Pylab is not there... am I missing something else? from pylab import ... is intended for interactive matplotlib plotting sessions or scripting, with syntax very similar to Matlab. To see what it is all about, try http://matplotlib.sourceforge.net/tutorial.html, and http://matplotlib.sourceforge.net/pylab_commands.html The example you are building from is the "Pythonic" object oriented interface, which is more suitable for writing applications than the pylab interface. -- Darren |