Ignore:
Timestamp:
04/20/10 18:38:20 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-1801, CAS-2064)

Ready to Release: Yes

Interface Changes: Yes

What Interface Changed:
Three methods, print_headder(), set_panellayout() and _reset_panellayout()
are added to the class asapplotter.
A parameter layout (list) is added to set_layout() in asaplotbase class.

Test Programs: run sdplot with header & plotstyle=True + layout parameter set.

Put in Release Notes: Yes

Module(s): sdplot() task.

Description:

  1. asapplotter.print_header(plot=True, fontsize=9, logger=False, selstr=, extrastr=): prints scantable header on the plot and/or logger (see help doc for parameter details). Note that the header information will not overlayed to the plot by plotazel() and plotpointing().
  2. set_panellayout(layout=[],refresh=True): sets the layout of subplots. layout is a list of subplots layout in figure coordinate (0-1) in order of [left, bottom, right, top, horizontal space btw panels, vertical space btw panels]
  3. _reset_panellayout(): resets the layout of subplots to matplotlib rc value.
  4. a member variable 'asapplotter._panellayout' (list) is specified to store layout values.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/asaplotbase.py

    r1717 r1723  
    570570
    571571
    572     def set_panels(self, rows=1, cols=0, n=-1, nplots=-1, ganged=True):
     572    #def set_panels(self, rows=1, cols=0, n=-1, nplots=-1, ganged=True):
     573    def set_panels(self, rows=1, cols=0, n=-1, nplots=-1, layout=None,ganged=True):
    573574        """
    574575        Set the panel layout.
     
    593594            self.set_title()
    594595
     596        if layout:
     597            lef, bot, rig, top, wsp, hsp = layout
     598            self.figure.subplots_adjust(
     599                left=lef,bottom=bot,right=rig,top=top,wspace=wsp,hspace=hsp)
     600            del lef,bot,rig,top,wsp,hsp
     601
    595602        if rows < 1: rows = 1
    596603
     
    605612        if 0 <= n < rows*cols:
    606613            i = len(self.subplots)
     614
    607615            self.subplots.append({})
    608616
     
    666674                self.cols = cols
    667675            self.subplot(0)
     676        del rows,cols,n,nplots,layout,ganged,i
    668677
    669678    def tidy(self):
Note: See TracChangeset for help on using the changeset viewer.