Sadece matplotlib içine giriyorum.matplotlib.pyplot ve matplotlib.figure arasındaki fark nedir?
Ben matplotlib.pyplot
bazı örnekler kullanılan görüyorum ama wxpython ile matplotlib tümleştirirken ı genellikle matplotlib.figure
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)
gibi
matplotlib.figure
ve
matplotlib.pyplot
kullanarak komplo arasındaki fark nedir görüyor musunuz? Bir wx uygulaması oluşturmak için
matplotlib.pyplot
kullanılabilir mi?
Hemen hemen tüm örneklerde 'şekil' ifadesini kullanabildim ama "pyplot" ile temel bir çalışma örneğim vardı ve sadece eksen biçimlendirmesini değiştirmek istedim. Bunun için * figürünü kullanmanız * gerekmiyor; bakınız örn. http://matplotlib.org/users/pyplot_tutorial.html – tripleee