Changeset 2916 for trunk/src/mcplot.py
- Timestamp:
- 08/26/10 14:44:34 (21 months ago)
- Files:
-
- 1 modified
-
trunk/src/mcplot.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mcplot.py
r2791 r2916 242 242 # Add the data block: 243 243 Filestruct['data']=loadtxt(this_File) 244 Filestruct['fullpath'] = this_File 245 print "Loading " + this_File 244 246 245 247 return Filestruct … … 333 335 text(0.05,0.05,usage) 334 336 title(os.path.basename(sys.argv[0]) + ": plotting tool for McCode data set",fontweight='bold') 335 show( h)337 show() 336 338 elif event.key == 'right' or event.key == 'pagedown': 337 339 'show next scan step/monitor' … … 377 379 378 380 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) 380 383 # end display_scanstep 381 384 … … 395 398 # end dumpfile 396 399 397 def display(this_File ):400 def display(this_File, comment): 398 401 """ 399 402 Display data set from File: overview or scan data set. Installs button and keyboard events. … … 503 506 from pylab import get_current_fig_manager 504 507 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); 506 509 507 510 # install handlers for keyboard and mouse events … … 538 541 matplotlib.use(options.Format) 539 542 540 display(File )543 display(File, "") 541 544 # End of __main__ 542 545
