Changeset 259


Ignore:
Timestamp:
Mar 10, 2011 9:00:32 AM (11 years ago)
Author:
vondreele
Message:

modify plotting of ellipse ring points - add colors & do as arrays. Now much faster plotting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r257 r259  
    902902    Dsp = lambda tth,wave: wave/(2.*sind(tth/2.))
    903903    global Data,Masks
     904    newImage = True
     905    colors=['b','g','r','c','m','k']
    904906    Data = self.PatternTree.GetItemPyData(
    905907        G2gd.GetPatternTreeItemId(self,self.Image, 'Image Controls'))
     
    12571259            Plot.plot(xring,yring,'r+',picker=3)
    12581260        if Data['setRings']:
    1259             rings = np.concatenate((Data['rings']),axis=0)
    1260             for xring,yring,dsp in rings:
    1261                 Plot.plot(xring,yring,'r+')           
     1261#            rings = np.concatenate((Data['rings']),axis=0)
     1262            N = 0
     1263            for ring in Data['rings']:
     1264                xring,yring = np.array(ring).T[:2]
     1265                Plot.plot(xring,yring,'+',color=colors[N%6])
     1266                N += 1           
    12621267        for ellipse in Data['ellipses']:
    12631268            cent,phi,[width,height],col = ellipse
Note: See TracChangeset for help on using the changeset viewer.