restructure shapepath data format

This commit is contained in:
2018-11-20 08:29:00 +01:00
parent 0a5ec9b004
commit 882ac3a66e
5 changed files with 124 additions and 106 deletions

View File

@@ -133,8 +133,8 @@ class MAErrorFrame(wx.Frame):
err=doc.err
except AttributeError:
rec=doc.fh['rec']
errx = (rec[:, 1] - rec[:, 4])
erry = (rec[:, 2] - rec[:, 5])
errx = (rec[:, 1] - rec[:, 3])
erry = (rec[:, 0] - rec[:, 2])
errxy = np.sqrt(errx ** 2 + erry ** 2)
doc.err = err = (errx, erry, errxy)
canvas.InitChild(meta,err)
@@ -178,15 +178,15 @@ class MAErrorFrame(wx.Frame):
idx = usrData
err = self.doc.err
hl = canvas.hl
#hl[0].set_data(rec[:len, 4], rec[:len, 5])
#hl[3].set_data(rec[:len, 1], rec[:len, 2])
#hl[0].set_data(rec[:len, 3], rec[:len, 2])
#hl[3].set_data(rec[:len, 1], rec[:len, 0])
# ax.draw_artist(hl[2])
x = ax.get_xlim();
x = (x[1] - x[0]) / 2;
#y = ax.get_ylim();
#y = (y[1] - y[0]) / 2;
ax.set_xlim(idx-x, idx + x,emit=True)
#ax.set_ylim(rec[len, 2] - y, rec[len, 2] + y)
#ax.set_ylim(rec[len, 0] - y, rec[len, 0] + y)
canvas.draw()
@staticmethod