Changeset 1563


Ignore:
Timestamp:
04/22/09 16:10:06 (16 years ago)
Author:
Malte Marquarding
Message:

fix for ticket #160: allow user to select the size of plotter and also honour matplotlib.rcParams

Location:
trunk/python
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotbase.py

    r1560 r1563  
    2929    """
    3030
    31     def __init__(self, rows=1, cols=0, title='', size=(8,6), buffering=False):
     31    def __init__(self, rows=1, cols=0, title='', size=None, buffering=False):
    3232        """
    3333        Create a new instance of the ASAPlot plotting class.
  • trunk/python/asaplotgui.py

    r1422 r1563  
    1616    """
    1717
    18     def __init__(self, rows=1, cols=0, title='', size=(8,6), buffering=False):
     18    def __init__(self, rows=1, cols=0, title='', size=None, buffering=False):
    1919        """
    2020        Create a new instance of the ASAPlot plotting class.
  • trunk/python/asaplotgui_gtk.py

    r1153 r1563  
    1818    """
    1919
    20     def __init__(self, rows=1, cols=0, title='', size=(8,6), buffering=False):
     20    def __init__(self, rows=1, cols=0, title='', size=None, buffering=False):
    2121        """
    2222        Create a new instance of the ASAPlot plotting class.
  • trunk/python/asapplotter.py

    r1559 r1563  
    1515        other variables.
    1616    """
    17     def __init__(self, visible=None):
     17    def __init__(self, visible=None , **kwargs):
    1818        self._visible = rcParams['plotter.gui']
    1919        if visible is not None:
    2020            self._visible = visible
    21         self._plotter = self._newplotter()
     21        self._plotter = self._newplotter(**kwargs)
    2222
    2323        self._panelling = None
     
    5151        return None
    5252
    53     def _newplotter(self):
     53    def _newplotter(self, **kwargs):
    5454        if self._visible:
    5555            from asap.asaplotgui import asaplotgui as asaplot
    5656        else:
    5757            from asap.asaplot import asaplot
    58         return asaplot()
     58        return asaplot(**kwargs)
    5959
    6060
Note: See TracChangeset for help on using the changeset viewer.