Changeset 1513


Ignore:
Timestamp:
02/20/09 12:18:48 (15 years ago)
Author:
Malte Marquarding
Message:

added rc parameter tp control ax-axis formatting

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r1508 r1513  
    107107    'plotter.histogram'  : [False, _validate_bool],
    108108    'plotter.papertype'  : ['A4', str],
     109    'plotter.xaxisformatting' : ['asap', str],
    109110
    110111    # scantable
     
    146147plotter.ganged             : True
    147148
    148 # decimate the number of points plotted bya afactor of
     149# decimate the number of points plotted by a factor of
    149150# nchan/1024
    150151plotter.decimate           : False
     
    159160# ps paper type
    160161plotter.papertype          : A4
     162
     163# The formatting style of the xaxis
     164plotter.xaxisformatting    : 'asap' or 'mpl'
    161165
    162166# scantable
  • trunk/python/asaplotbase.py

    r1479 r1513  
    620620                    self.subplots[i]['axes'] = self.figure.add_subplot(rows,
    621621                                                cols, i+1)
    622                     self.subplots[i]['axes'].xaxis.set_major_formatter(OldScalarFormatter())
     622                    if asaprcParams['plotter.xaxisformatting'] == 'mpl':
     623                        self.subplots[i]['axes'].xaxis.set_major_formatter(OldScalarFormatter())
    623624                else:
    624625                    if i == 0:
    625626                        self.subplots[i]['axes'] = self.figure.add_subplot(rows,
    626627                                                cols, i+1)
    627                         self.subplots[i]['axes'].xaxis.set_major_formatter(OldScalarFormatter())
     628                        if asaprcParams['plotter.xaxisformatting'] != 'mpl':
     629                           
     630                            self.subplots[i]['axes'].xaxis.set_major_formatter(OldScalarFormatter())
    628631                    else:
    629632                        self.subplots[i]['axes'] = self.figure.add_subplot(rows,
Note: See TracChangeset for help on using the changeset viewer.