Changeset 2916 for trunk/src/mcplot.py

Show
Ignore:
Timestamp:
08/26/10 14:44:34 (21 months ago)
Author:
farhi
Message:

mcplot.py: added scan step number in lower right message when pressing left/righ arrows

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/mcplot.py

    r2791 r2916  
    242242    # Add the data block: 
    243243    Filestruct['data']=loadtxt(this_File) 
     244    Filestruct['fullpath'] = this_File 
     245    print "Loading " + this_File 
    244246     
    245247    return Filestruct 
     
    333335        text(0.05,0.05,usage) 
    334336        title(os.path.basename(sys.argv[0]) + ": plotting tool for McCode data set",fontweight='bold') 
    335         show(h) 
     337        show() 
    336338    elif event.key == 'right' or event.key == 'pagedown': 
    337339        'show next scan step/monitor' 
     
    377379 
    378380    scan_index = index 
    379     display(os.path.join(this_File, "%i" % index)) 
     381    print "Loading " + os.path.join(this_File, "%i" % index) 
     382    display(os.path.join(this_File, "%i" % index), "/%i" % index) 
    380383    # end display_scanstep 
    381384 
     
    395398    # end dumpfile 
    396399 
    397 def display(this_File): 
     400def display(this_File, comment): 
    398401    """ 
    399402    Display data set from File: overview or scan data set. Installs button and keyboard events. 
     
    503506        from pylab import get_current_fig_manager 
    504507        tb = get_current_fig_manager().toolbar 
    505         tb.set_message('mcplot: Keys: h=help [goc|x|pdnj] ' + File); 
     508        tb.set_message('File: ' + File + comment + ' mcplot: Keys: h=help [goc|x|pdnj] ' + File + comment); 
    506509         
    507510    # install handlers for keyboard and mouse events 
     
    538541        matplotlib.use(options.Format) 
    539542         
    540     display(File) 
     543    display(File, "") 
    541544    # End of __main__ 
    542545