Changeset 3907 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 18, 2019 3:32:25 PM (3 years ago)
Author:
vondreele
Message:

add 'k' option to structure plot key box for toggle of contours

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3906 r3907  
    77697769            SetViewPointText(drawingData['viewPoint'][0])
    77707770            G2frame.G2plotNB.status.SetStatusText('View point at atom '+drawAtoms[pI[0]][ct-1]+str(pI),1)
     7771           
     7772        elif key in ['K'] and generalData['Map']['MapType']:
     7773            drawingData['showSlice'] = not drawingData.get('showSlice',False)
     7774            SetShowCS(drawingData['showSlice'])
    77717775               
    77727776        elif key in ['P']:
     
    80188022                G2frame.phaseDisplay.viewPoint.SetValue('%.3f %.3f %.3f'%(VP[0],VP[1],VP[2]))
    80198023               
     8024    def SetShowCS(CS):
     8025        page = getSelection()
     8026        if page:
     8027            if G2frame.phaseDisplay.GetPageText(page) == 'Draw Options':
     8028                G2frame.phaseDisplay.showCS.SetValue(CS)
     8029                               
    80208030    def SetRBOrigText():
    80218031        page = getSelection()
     
    88428852    Font = Page.GetFont()
    88438853    Page.Choice = None
     8854    choice = [' save as/key:','jpeg','tiff','bmp','c: center on 1/2,1/2,1/2']
     8855    if mapData['MapType']:
     8856        choice += ['k: toggle contour plot',]
    88448857    if mapData.get('Flip',False):
    8845         choice = [' save as/key:','jpeg','tiff','bmp','c: center on 1/2,1/2,1/2',
    8846             'u: roll up','d: roll down','l: roll left','r: roll right']
     8858        choice += ['u: roll up','d: roll down','l: roll left','r: roll right']
    88478859    else:
    8848         choice = [' save as/key:','jpeg','tiff','bmp','c: center on 1/2,1/2,1/2','n: next','p: previous']
     8860        choice += ['n: next','p: previous']
    88498861    if generalData['Modulated'] and len(drawAtoms):
    88508862        choice += ['+: increase tau','-: decrease tau','0: set tau = 0']
Note: See TracChangeset for help on using the changeset viewer.