This commit is contained in:
2022-09-06 15:10:57 +02:00
parent cbae02c597
commit 8d8ab1a5fd
3 changed files with 84 additions and 31 deletions

View File

@@ -105,12 +105,12 @@ class Marker(pg.ROI):
f.setPixelSize(10)
p.setFont(f)
p.drawText(ofx+24, ofy+20, 'beam marker')
ctr=tuple(self.pos()+self.size()/2)
sz=tuple(self.size())
p.drawText(ofx+5, ofy+45, '{:.1f}x{:.1f}'.format(*sz))
ctr=tuple((self.pos()+self.size()/2)*1000)
sz=tuple(self.size()*1000)
p.drawText(ofx+5, ofy+45, '{:.1f}x{:.1f} um'.format(*sz))
#p.drawText(5, -35, '{:.1f}'.format(ctr[0]))
p.drawText(ofx+5, ofy+55,42,30,Qt.AlignRight, '{:.1f}'.format(ctr[0]))
p.drawText(ofx+55, ofy+65, '{:.1f}'.format(ctr[1]))
p.drawText(ofx+55, ofy+65, '{:.1f} um'.format(ctr[1]))
elif m==1:
p.drawEllipse(20,20,60,60)