Changeset 1113 for trunk/testDeriv.py


Ignore:
Timestamp:
Oct 18, 2013 11:18:14 AM (8 years ago)
Author:
vondreele
Message:

fix Babinet derivatives for SC & powder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testDeriv.py

    r1112 r1113  
    139139            delVal.Bind(wx.EVT_KILL_FOCUS,OnDelValue)
    140140            mainSizer.Add(delVal,0)
    141         mainSizer.Layout()
     141#        mainSizer.Layout()
    142142        self.testDerivPanel.SetSizer(mainSizer)   
    143143        Size = mainSizer.Fit(self.testDerivPanel)
    144         Size[0] += 40
     144        Size[0] = 700
    145145        Size[1] = max(Size[1],290) + 35
    146146        self.testDerivPanel.SetScrollbars(10,10,Size[0]/10-4,Size[1]/10-1)
     
    171171                self.values[self.varylist.index(name)] -= delt   
    172172                Mn = (M1-M0)/(2.*delt)
    173                 hplot.plot(Mn,'r+',label='numeric deriv')
     173                hplot.plot(Mn,'r',label='numeric deriv')
    174174                hplot.plot(dMdV[self.varylist.index(name)]-Mn,'g',label='diff')
    175175            hplot.legend(loc='best')
Note: See TracChangeset for help on using the changeset viewer.