Changeset 4460


Ignore:
Timestamp:
Jun 2, 2020 1:04:03 PM (3 years ago)
Author:
vondreele
Message:

correct plots for RMCProfile & fullrmc S(Q) & G(R) plots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4455 r4460  
    57845784                                        return
    57855785                                    Z = rdfDict['total']
    5786                                     XY = [[X,Y],[X,Z]]
    5787                                     Names = ['Obs','Calc']
     5786                                    XY = [[X,Z],[X,Y]]
     5787                                    Names = ['Calc','Obs']
    57885788                                    G2plt.PlotXY(G2frame,XY,labelX=Xlab,
    57895789                                        labelY=Ylab,newPlot=True,Title=title+pName,
     
    58325832                                            G2plt.PlotBarGraph(G2frame,bondLens,Xname=r'%s $Bond,\ \AA$'%Bname,Title='%s Bond lengths for %s'%(Bname,pName),
    58335833                                                PlotName='%s Bonds for %s'%(Bname,pName),maxBins=20)
     5834                                            print(' %d %s bonds found'%(len(bondLens),Bname))
    58345835                                    elif 'BondsAngleConstraint' in sitem:
    58355836                                        angles = 180.*item.get_constraint_value()['angles']/np.pi
     
    58435844                                            G2plt.PlotBarGraph(G2frame,bondAngs,Xname=r'%s Angle, deg'%Aname,Title='%s Bond angles for %s'%(Aname,pName),
    58445845                                                PlotName='%s Angles for %s'%(Aname,pName),maxBins=20)
     5846                                            print(' %d %s angles found'%(len(bondAngs),Aname))
    58455847                                    elif 'DihedralAngleConstraint' in sitem:
    58465848                                        impangles = 180.*item.get_constraint_value()['angles']/np.pi
     
    60106012                            lines=True,names=Names[1:])
    60116013                    else:
    6012                         G2plt.PlotXY(G2frame,[Yobs,Ycalc],labelX=Labels[label][0],
     6014                        G2plt.PlotXY(G2frame,[Ycalc,Yobs],labelX=Labels[label][0],
    60136015                            labelY=Labels[label][1],newPlot=True,Title=Labels[label][2]+pName,
    60146016                            lines=True,names=Names[1:])
     
    61456147                    G2plt.PlotBarGraph(G2frame,bondDist,Xname=r'$Bond, \AA$',Title=title+' from Potential Energy Restraint',
    61466148                        PlotName='%s Bond for %s'%(title,pName))
     6149                    print(' %d %s bonds found'%(len(bondDist),title))
    61476150               
    61486151#alt angle histograms - from rmc6 & triplets files
     
    61746177                    G2plt.PlotBarGraph(G2frame,angles,Xname=r'$Angle, \AA$',Title=title+' from Potential Energy Restraint',
    61756178                        PlotName='%s Angle for %s'%(title,pName))
     6179                    print(' %d %s angles found'%(len(angles),title))
    61766180                               
    61776181#bond odf plots               
Note: See TracChangeset for help on using the changeset viewer.