Changeset 2422 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Aug 13, 2016 4:15:35 PM (5 years ago)
Author:
vondreele
Message:

allow saving of plotted XY data from PlotXY as csv file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2419 r2422  
    24522452        elif event.key == 'o':
    24532453            Page.Offset = [0,0]
     2454        elif event.key == 's':
     2455            if len(XY):
     2456                G2IO.XYsave(G2frame,XY,labelX,labelY,names)
     2457            if XY2 != None:
     2458                G2IO.XYsave(G2frame,XY2,labelX,labelY,names2)
    24542459        else:
    24552460#            print 'no binding for key',event.key
     
    24882493    if lines:
    24892494        Page.Choice = (' key press','l: offset left','r: offset right','d: offset down',
    2490             'u: offset up','o: reset offset',)
     2495            'u: offset up','o: reset offset','s: save data as csv file')
    24912496    else:
    24922497        Page.Choice = None
Note: See TracChangeset for help on using the changeset viewer.