Ignore:
Timestamp:
07/09/09 12:52:39 (11 years ago)
Author:
pnorton
Message:

Improved the colour bar code so it now accepts the data array instead of just a minimum + maximum. It also now defaults to creating a Normalize instance with vmin=None and vmax=None instead of 0 and 1.

Also modified the layer_drawer objects to use the ColourBar? class instead of implementing it themselves.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/geoplot/trunk/lib/geoplot/plot_base.py

    r5646 r5688  
    152152        if self.drawColourBar: 
    153153            self._colourBar.draw(self._plotArea.cbAxes, self.fontSize,  
    154                                  dataMin=grid.values.min(), 
    155                                  dataMax=grid.values.max()) 
     154                                 data=grid.values) 
    156155 
    157156    def drawToImage(self): 
Note: See TracChangeset for help on using the changeset viewer.