- Timestamp:
- 12/13/12 15:46:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r2693 r2694 1400 1400 self._assert_plotter(action="reload") 1401 1401 self._plotter.hold() 1402 if self.casabar_exists(): self._plotter.figmgr.casabar.disable_button() 1402 if self.casabar_exists(): 1403 self._plotter.figmgr.casabar.set_pagecounter(1) 1404 self._plotter.figmgr.casabar.disable_button() 1403 1405 # for now, only one plot 1404 1406 self._plotter.set_panels(rows=1,cols=1) … … 1409 1411 self.gca().set_aspect('equal') 1410 1412 basesel = scan.get_selection() 1411 marker = "+" 1413 attrback = self._plotter.get_line() 1414 marker = "o" 1412 1415 if showline: 1413 1416 basesel.set_order(["TIME"]) 1414 1417 scan.set_selection(basesel) 1415 1418 if not (stype in ["t", "s"]): 1416 marker = "+:" 1419 marker += ":" 1420 self._plotter.set_line(markersize=3, markeredgewidth=0) 1421 1417 1422 if not stype: 1418 1423 selIds = [""] # cheating … … 1447 1452 continue 1448 1453 print "Plotting direction of %s = %s" % (colorby, str(idx)) 1454 # getting data to plot 1449 1455 dir = array(self._data.get_directionval()).transpose() 1450 1456 ra = dir[0]*180./pi 1451 1457 dec = dir[1]*180./pi 1458 # actual plot 1452 1459 self._plotter.set_line(label=(sellab+str(idx))) 1453 1460 self._plotter.plot(ra,dec,marker) … … 1462 1469 self._plotter.set_line(label="scan pattern") 1463 1470 self._plotter.plot(ra,dec,":") 1464 1471 # set color for only this line 1472 self._plotter.lines[-1][0].set_color("gray") 1473 1465 1474 xlab = 'RA [deg.]' 1466 1475 ylab = 'Declination [deg.]' … … 1476 1485 self._plotter.release() 1477 1486 self._plotter.show(hardrefresh=False) 1487 # reset line settings 1488 self._plotter.set_line(**attrback) 1478 1489 return 1479 1490
Note:
See TracChangeset
for help on using the changeset viewer.