Changeset 180 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Nov 21, 2010 9:27:06 AM (13 years ago)
Author:
vondreele
Message:

fix image mask plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r174 r180  
    756756                self.setPoly = True
    757757                Masks['Polygons'].append([])
    758                 print 'Polygon mask active - pick points with mouse LB'
    759                 print '   use RB to close when > 2 points chosen'
    760                 print 'Vertices can be dragged with LB down after polygon closed'
     758                self.G2plotNB.status.SetFields(['','Polygon mask active - LB pick points, RB closepolygon'])
    761759            G2imG.UpdateMasks(self,Masks)
    762760        PlotImage(self)
     
    775773                    polygon.append([x0,y0])
    776774                    self.setPoly = False
    777                 else:           
     775                    self.G2plotNB.status.SetFields(['','Polygon closed: %.1f,%.1f'%(x0,y0)])
     776                else:
     777                    self.G2plotNB.status.SetFields(['','Add polygon point: %.1f,%.1f'%(xpos,ypos)])
    778778                    polygon.append([xpos,ypos])
    779779                G2imG.UpdateMasks(self,Masks)
Note: See TracChangeset for help on using the changeset viewer.