python - what's the difference between matplotlib.pyplot and matplotlib.figure? -


I'm just getting into matplotlib.

Used me to see some examples of matplotlib.pyplot , but when integrating matplotlib with wxpython, I often import matplotlib.figure from the import matplotlib.figure < / Code> such as

  import image ... vboxFigure = wx.boxSizer (wx.VERTICAL) self.figure = Picture (self). Self.axes = self.figure.add_subplot (111) T = [1,2,3,4,5] s = [0,0,0,0,0,0] Self.axes.plot (t, s, 'b-') self.canvas = Paintings (panel, - 1, self.) What's the difference between plotting VboxFigure.Add (self.canvas, 1, wx.LEFT | wx.TOP | wx  matplotlib.figure, and  matplotlib? Vboxfigure (1, flag = wx.EXPAND)   

pyplot ? Can I use matplotlib.pyplot in creating a wx app?

PAPLOT is a state-machine API such as Matlab, part of the matplotlib.figure.Figure object-oriented API. For example, if you want to create a wx app to begin with an object-oriented API, so.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -