Changeset 6352
- Timestamp:
- Feb 17, 2009, 9:27:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/plotcsv/plotcsv.py
r6351 r6352 278 278 279 279 # get appropriate columns from data[] 280 x_data = map(lambda x: x[x_index], data)280 x_data = map(lambda x: float(x[x_index]), data) 281 281 if x_hdr == 'time': 282 282 x_data = map(lambda x: float(x)/3600., x_data) 283 y_data = map(lambda x: x[y_index], data)283 y_data = map(lambda x: float(x[y_index]), data) 284 284 285 285 return (x_data, y_data) … … 451 451 if self.XColHdr is None: 452 452 self.XColHdr = [] 453 # -1 here means 'no selection'454 453 self.XColHdrSelection = self.cfg['XColHdrSelection'] 455 454 self.YColHdr = self.cfg['YColHdr'] 456 455 if self.YColHdr is None: 457 456 self.YColHdr = [] 458 # -1 here means 'no selection'459 457 self.YColHdrSelection = self.cfg['YColHdrSelection'] 460 458 self.file_dir = self.cfg['file_dir'] … … 471 469 self.updateHdrChoices() 472 470 473 if self.XColHdrSelection :471 if self.XColHdrSelection >= 0: 474 472 self.cbXColHdr.SetSelection(self.XColHdrSelection) 475 if self.YColHdrSelection :473 if self.YColHdrSelection >= 0: 476 474 self.cbYColHdr.SetSelection(self.YColHdrSelection) 477 475
Note: See TracChangeset
for help on using the changeset viewer.