Changeset 4970 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jun 22, 2021 4:50:29 PM (5 months ago)
Author:
vondreele
Message:

fix PlotAAProb bugs - leftover pickradius & an xpos error
fix scale factor bug & set floor as 1.e-12 for PWDR histograms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4958 r4970  
    56345634    def OnMotion(event):
    56355635        xpos,ypos = event.xdata,event.ydata
    5636         if xpos > 1.:
     5636        if xpos and xpos > 1.:
    56375637            if 0 <= xpos < len(resNames):
    56385638                resName = resNames[int(xpos+.5)-1]
     
    56665666        colors = list(np.where(np.array(Probs1)>thresh[0][1],'r','b'))
    56675667        resNums = np.arange(len(resNames))
    5668         Plot1.bar(resNums,Probs1,color=colors,linewidth=0,
    5669                                 picker=True,pickradius=1)
     5668        Plot1.bar(resNums,Probs1,color=colors,linewidth=0,picker=True)
    56705669        if thresh is not None:
    56715670            for item in thresh[0]:
     
    56755674        Plot2.set_xlabel(r'Residue',fontsize=14)       
    56765675        colors = list(np.where(np.array(Probs2)>thresh[1][1],'r','b'))
    5677         Plot2.bar(resNums,Probs2,color=colors,linewidth=0,
    5678                                 picker=True,pickradius=1)
     5676        Plot2.bar(resNums,Probs2,color=colors,linewidth=0,picker=True)
    56795677        if thresh is not None:
    56805678            for item in thresh[1]:
Note: See TracChangeset for help on using the changeset viewer.