From: Jan R. G. <jr...@gm...> - 2005-03-31 09:34:28
|
ok, so i've done plotting two list on boa/wxpython now, i want to add labels and everything else to my graph... adding labels i've done this: self.figure = Figure() self.axes = self.figure.add_subplot(111) self.axes.plot(parent.listX,parent.listY, 'bo') self.axes.xlabel(parent.Xaxis.GetStringSelection()) self.axes.ylabel(parent.Xaxis.GetStringSelection()) self.canvas = FigureCanvas(self, -1, self.figure) =========================================== but i'm getting some error that says: Traceback (most recent call last): File "E:\final docu\Folder4.2pssl2\wxFrame1.py", line 729, in OnGraphOldFileButton wxFrame2.create(self).Show(true) File "E:\final docu\Folder4.2pssl2\wxFrame2.py", line 16, in create return wxFrame2(parent) File "E:\final docu\Folder4.2pssl2\wxFrame2.py", line 39, in __init__ self.axes.xlabel(parent.Xaxis.GetStringSelection()) AttributeError: Subplot instance has no attribute 'xlabel' ============================================== what should i do??? |