Ignore:
Timestamp:
Mar 19, 2021 12:56:44 PM (10 months ago)
Author:
vondreele
Message:

Add new button to Covariance page - Show last shift/esd bar plot
Add PlotNamedFloatBarGraph? to G2plot to do it.
Fix a missing default on get in ReportProblems? in G2strMain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4852 r4857  
    73677367    Also Called in GSASIIphsGUI.UpdatePhaseData by OnTransform callback.
    73687368    '''
     7369    def OnShowShift(event):
     7370        if 'Lastshft' not in data:
     7371            return
     7372        if data['Lastshft'] is None:
     7373            return
     7374        shftesd = data['Lastshft']/data['sig']
     7375       
     7376        G2plt.PlotNamedFloatHBarGraph(G2frame,shftesd,data['varyList'],Xlabel='Last shift/esd',
     7377            Ylabel='Variables',Title='Last shift/esd',PlotName='Shift/esd')
     7378   
    73697379    if G2frame.PickIdText == G2frame.GetTreeItemsList(item): # don't redo the current data tree item
    73707380        if GSASIIpath.GetConfigValue('debug'): print('Skipping SelectDataTreeItem as G2frame.PickIdText unchanged')
     
    74477457    if G2frame.dataWindow:
    74487458        G2frame.dataWindow.ClearData()
    7449 #    G2frame.dataWindow.ClearData()
    74507459    # process first-level entries in tree
    74517460    if G2frame.GPXtree.GetItemParent(item) == G2frame.root:
     
    74917500                    text += '\n\tReduced χ**2 = {:.2f}'.format(Rvals['GOF']**2)
    74927501                subSizer.Add(wx.StaticText(G2frame.dataWindow,wx.ID_ANY,text))
     7502                if 'Lastshft' in data and not data['Lastshft'] is None:
     7503                    showShift = wx.Button(G2frame.dataWindow,label='Show shift/esd plot')
     7504                    showShift.Bind(wx.EVT_BUTTON,OnShowShift)
     7505                    subSizer.Add(showShift)
    74937506            mainSizer.Add(subSizer)
    74947507            mainSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex='Covariance'))
    7495             #mainSizer.Add((-1,-1),1,wx.EXPAND)
    74967508            G2frame.dataWindow.GetSizer().Add(mainSizer)
    7497 #            G2frame.dataWindow.GetSizer().Add((-1,-1),1,wx.EXPAND,1)
    74987509            G2plt.PlotCovariance(G2frame,data)
    74997510        elif G2frame.GPXtree.GetItemText(item) == 'Constraints':
Note: See TracChangeset for help on using the changeset viewer.