add MAVelocity.py
This commit is contained in:
@@ -51,12 +51,13 @@ class MPLCanvasErr(FigureCanvas):
|
||||
ax=self.ax
|
||||
errx,erry,err=err
|
||||
hl = []
|
||||
hl = ax.plot(errx, 'g-',label='x-error')
|
||||
hl = ax.plot(erry, 'y-',label='y-error')
|
||||
hl = ax.plot(err, 'r-',label='error')
|
||||
hl += ax.plot(errx, 'g-',label='x-error')
|
||||
hl += ax.plot(erry, 'y-',label='y-error')
|
||||
hl += ax.plot(err, 'r-',label='error')
|
||||
ax.xaxis.set_label_text('time (10x servo cycle)')
|
||||
ax.yaxis.set_label_text('pos-error um')
|
||||
legend = ax.legend(loc='upper right', shadow=True)
|
||||
ax.plot([.5,.5],[0.01, 0.99],'k',transform=ax.transAxes)
|
||||
self.ax = ax
|
||||
self.hl = hl
|
||||
|
||||
@@ -168,7 +169,7 @@ class MAErrorFrame(wx.Frame):
|
||||
|
||||
def OnUpdate(self, msg, usrData):
|
||||
# this is the model-view-control update function
|
||||
print 'OnUpdate',self, msg, usrData
|
||||
#print 'OnUpdate',self, msg, usrData
|
||||
# for message description s.a. class MADoc
|
||||
if msg == 0:
|
||||
canvas = self.canvas
|
||||
|
||||
Reference in New Issue
Block a user