Ignore:
Timestamp:
24/09/09 12:05:03 (10 years ago)
Author:
pnorton
Message:

Added the ability to set background colours and some other options for the data renderer implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/service/imps/data_reader_geoplot_backend/data_reader_geoplot_wms_layer.py

    r5697 r5761  
    103103        log.debug("dimValues = %s" % (dimValues,)) 
    104104         
     105        #make the colour compatable with matplotlib 
     106        if bgcolor.find('0x') == 0: 
     107            bgcolor = '#' + bgcolor[2:] 
     108         
    105109        st = time.time() 
    106110        netcdfVar = self.dataReader.getNetcdfVar(self.name, dimValues) 
     
    111115        bbox=self.getBBox(crs) 
    112116         
    113         slab = slabClass(netcdfVar, self.title, crs, dimValues, transparent, bbox, additionalParams) 
     117        slab = slabClass(netcdfVar, self.title, crs, dimValues, transparent, bgcolor, bbox, additionalParams) 
    114118                
    115119        return slab 
Note: See TracChangeset for help on using the changeset viewer.