wip
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user