Changeset 2694


Ignore:
Timestamp:
12/13/12 15:46:18 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (TRAC-287)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asapplotter and sdplot

Description: bug fixes to asapplotter.plotpoining2


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r2693 r2694  
    14001400        self._assert_plotter(action="reload")
    14011401        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()
    14031405        # for now, only one plot
    14041406        self._plotter.set_panels(rows=1,cols=1)
     
    14091411        self.gca().set_aspect('equal')
    14101412        basesel = scan.get_selection()
    1411         marker = "+"
     1413        attrback = self._plotter.get_line()
     1414        marker = "o"
    14121415        if showline:
    14131416            basesel.set_order(["TIME"])
    14141417            scan.set_selection(basesel)
    14151418            if not (stype in ["t", "s"]):
    1416                 marker = "+:"
     1419                marker += ":"
     1420        self._plotter.set_line(markersize=3, markeredgewidth=0)
     1421
    14171422        if not stype:
    14181423            selIds = [""] # cheating
     
    14471452                continue
    14481453            print "Plotting direction of %s = %s" % (colorby, str(idx))
     1454            # getting data to plot
    14491455            dir = array(self._data.get_directionval()).transpose()
    14501456            ra = dir[0]*180./pi
    14511457            dec = dir[1]*180./pi
     1458            # actual plot
    14521459            self._plotter.set_line(label=(sellab+str(idx)))
    14531460            self._plotter.plot(ra,dec,marker)
     
    14621469            self._plotter.set_line(label="scan pattern")
    14631470            self._plotter.plot(ra,dec,":")
    1464            
     1471            # set color for only this line
     1472            self._plotter.lines[-1][0].set_color("gray")
     1473
    14651474        xlab = 'RA [deg.]'
    14661475        ylab = 'Declination [deg.]'
     
    14761485        self._plotter.release()
    14771486        self._plotter.show(hardrefresh=False)
     1487        # reset line settings
     1488        self._plotter.set_line(**attrback)
    14781489        return
    14791490
Note: See TracChangeset for help on using the changeset viewer.