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/grid_plot.py

    r5612 r5688  
    6060        log.debug("grid.values.max() = %s" % (grid.values.max(),)) 
    6161         
    62         norm = self._colourBar.getNormalize(dataMin=grid.values.min(), dataMax=grid.values.max()) 
     62        norm = self._colourBar.getNormalize(data=grid.values) 
    6363        cmap = self._colourBar.getColourMap() 
    6464         
Note: See TracChangeset for help on using the changeset viewer.