python - what's the difference between matplotlib.pyplot and matplotlib.figure? -
I'm just getting into matplotlib.
Used me to see some examples of pyplot ? 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. 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)
matplotlib.pyplot in creating a wx app?
Comments
Post a Comment