Changeset 2606 for trunk

Show
Ignore:
Timestamp:
06/20/2008 09:44:45 AM (7 months ago)
Author:
guyer
Message:

r2475 broke irregular meshes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fipy/viewers/matplotlibViewer/matplotlib2DViewer.py

    r2475 r2606  
    66 #  
    77 #  FILE: "matplotlib2DViewer.py" 
    8  #                                    created: 9/14/04 {2:48:25 PM}  
    9  #                                last update: 10/6/07 {7:58:36 PM} { 2:45:36 PM} 
     8 # 
    109 #  Author: Jonathan Guyer <guyer@nist.gov> 
    1110 #  Author: Daniel Wheeler <daniel.wheeler@nist.gov> 
     
    131130 
    132131        if self._getLimit('xmin') is None: 
    133             xmin = min(numerix.array(self.collection._verts)[:,:,0].flat) 
     132            xmin = xCoords.min() 
    134133        else: 
    135134            xmin = self._getLimit('xmin') 
    136135 
    137136        if self._getLimit('xmax') is None: 
    138             xmax = max(numerix.array(self.collection._verts)[:,:,0].flat) 
     137            xmax = xCoords.max() 
    139138        else: 
    140139            xmax = self._getLimit('xmax') 
    141140 
    142141        if self._getLimit('ymin') is None: 
    143             ymin = min(numerix.array(self.collection._verts)[:,:,1].flat) 
     142            ymin = yCoords.min() 
    144143        else: 
    145144            ymin = self._getLimit('ymin') 
    146145 
    147146        if self._getLimit('ymax') is None: 
    148             ymax = max(numerix.array(self.collection._verts)[:,:,1].flat) 
     147            ymax = yCoords.max() 
    149148        else: 
    150149            ymax = self._getLimit('ymax')