qual é a diferença entre matplotlib.pyplot e matplotlib.figure?
Estou entrando no matplotli
Vejo alguns exemplos dematplotlib.pyplot
usado, mas ao integrar o matplotlib com o wxpython, frequentemente vejomatplotlib.figure
gosta
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)
Qual é a diferença entre plotagem usandomatplotlib.figure
ematplotlib.pyplot
? Latamatplotlib.pyplot
ser usado na construção de um aplicativo wx?