(self, title)
| 49 | dc.DrawText('(%.1f,%.1f)'%(i[0]*unit, i[1]*unit), x, y) |
| 50 | |
| 51 | def report(self, title): |
| 52 | unit = 1 if self.unit is None else self.unit[0] |
| 53 | rst = [(x*unit, y*unit) for x,y in self.body] |
| 54 | titles = ['OX', 'OY'] |
| 55 | IPy.show_table(pd.DataFrame(rst, columns=titles), title) |
| 56 | |
| 57 | class Plugin(Tool): |
| 58 | """Define the coordinate class plugin with the event callback functions""" |