Ignore:
Timestamp:
09/09/09 10:03:38 (11 years ago)
Author:
pnorton
Message:

Extended the options available on the grid and contour slabs in the data reader backend. Also fixed a bug with the slab_option_parser and improved the legend rendering code.

File:
1 edited

Legend:

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

    r5692 r5697  
    1818        RenderingOption('cmap_min', "Legend Min" ,float,None), 
    1919        RenderingOption('cmap_max', "Legend Max" ,float,None), 
     20        RenderingOption('intervalColourbar', "intervalColourbar" ,bool,False), 
     21        RenderingOption('intervalNames', "intervalNames" ,str,None), 
    2022        RenderingOption('show_grid_lines', "Draw Grid Boxes" ,bool,False), 
    2123    ]                         
     
    3032        if cmapMax == None: 
    3133            cmapMax = self.variable.max() 
     34             
     35        intervalNames = self.parser.getOption('intervalNames') 
     36        if intervalNames != None: 
     37            intervalNames = intervalNames.split(',') 
     38         
     39        log.debug("self.transparent = %s" % (self.transparent,)) 
    3240         
    3341        ld = LayerDrawerGrid(self.variable,  
     
    3543                             showGridLines=self.parser.getOption('show_grid_lines'),  
    3644                             cmapRange=(cmapMin, cmapMax), 
     45                             intervalColourbar = self.parser.getOption('intervalColourbar'), 
     46                             intervalNames=intervalNames,                              
    3747                             transparent=self.transparent) 
    3848         
Note: See TracChangeset for help on using the changeset viewer.