I'm just getting into matplotlib.
I see some examples of matplotlib.pyplot used, but when integrating matplotlib with wxpython i often see matplotlib.figure like
from matplotlib.figure import Figure
...
vboxFigure = wx.BoxSizer(wx.VERTICAL)
self.figure = Figure()
self.axes = self.figure.add_subplot(111)
t = [1,2,3,4,5]
s = [0,0,0,0,0]
self.axes.plot(t,s, 'b-')
self.canvas = FigureCanvas(panel, -1, self.figure)
vboxFigure.Add(self.canvas, 1, wx.LEFT | wx.TOP | wx.EXPAND)
hbox.Add(vboxFigure, 1, flag=wx.EXPAND)
What is the difference between plotting using matplotlib.figure and matplotlib.pyplot? Can matplotlib.pyplot be used in building a wx app?
figurebut I had a basic working example withpyplotand just wanted to change the axis formatting. You don't have to usefigurefor that; see e.g. matplotlib.org/users/pyplot_tutorial.html