Changeset 1633 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jan 22, 2015 10:09:11 AM (8 years ago)
Author:
vondreele
Message:

fix wx 3.0.x problem with Size on Progress bars in G2phsGUI & G2pwdGUI
4D charge flipping fixes - allow shifting 4D contour map L/R

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1630 r1633  
    28532853                ccof.append(spos[0][3:])
    28542854        wave += G2mth.posFourier(tau,np.array(scof),np.array(ccof))
    2855     Title = MapType+' modulation map for atom '+atom[0]+    \
     2855    if mapData['Flip']:
     2856        Title = 'Charge flip'
     2857    else:
     2858        Title = MapType
     2859    Title += ' map for atom '+atom[0]+    \
    28562860        ' at %.4f %.4f %.4f'%(atxyz[0],atxyz[1],atxyz[2])
    28572861    ix = -np.array(np.rint(rhoSize[:3]*atxyz),dtype='i')
     
    28732877    Plot.set_xlabel('t')
    28742878    Plot.set_ylabel(r'$\mathsf{\Delta}$%s'%(Ax))
    2875     Slab = np.concatenate((slab,slab),axis=1)
    2876     Plot.contour(Slab,20,extent=(0.,2.,-.5+Off*.005,.5+Off*.005))
     2879    Slab = np.hstack((slab,slab,slab))
     2880    Plot.contour(Slab[:,:21],20,extent=(0.,2.,-.5+Off*.005,.5+Off*.005))
    28772881    Page.canvas.draw()
    28782882   
     
    40324036    B4mat = np.concatenate((np.concatenate((Bmat,[[0],[0],[0]]),axis=1),[[0,0,0,1],]),axis=0)
    40334037    SGData = generalData['SGData']
     4038    if generalData['Type'] in ['modulated','magnetic']:
     4039        SSGData = generalData['SSGData']
    40344040    Mydir = generalData['Mydir']
    40354041    atomData = data['Atoms']
     
    41084114    shiftDown = False
    41094115    ctrlDown = False
     4116    G2frame.tau = 0.
    41104117   
    41114118    def OnKeyBox(event):
     
    42154222            SetPeakRoll(dirDict[key])
    42164223            SetMapPeaksText(mapPeaks)
     4224        elif key in ['+','-','0'] and generalData['Type'] in ['modulated','magnetic']:
     4225            if key == '0':
     4226                G2frame.tau = 0.
     4227            elif key =='+':
     4228                G2frame.tau += 0.05
     4229            elif key =='-':
     4230                G2frame.tau -= 0.05
     4231            G2frame.tau %= 1.   #force 0-1 range
    42174232        Draw('key')
    42184233           
     
    49915006    else:
    49925007        choice = [' save as/key:','jpeg','tiff','bmp','c: center on 1/2,1/2,1/2','n: next','p: previous']
     5008    if generalData['Type'] in ['modulated','magnetic',] and len(drawAtoms):
     5009        choice += ['+: increase tau','-: decrease tau','0: set tau = 0']
     5010
    49935011    cb = wx.ComboBox(G2frame.G2plotNB.status,style=wx.CB_DROPDOWN|wx.CB_READONLY,choices=choice)
    49945012    cb.Bind(wx.EVT_COMBOBOX, OnKeyBox)
Note: See TracChangeset for help on using the changeset viewer.