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_contour.py

    r5692 r5697  
    2020        RenderingOption('cmap_min', "Legend Min" ,float,None), 
    2121        RenderingOption('cmap_max', "Legend Max" ,float,None), 
     22        RenderingOption('intervalColourbar', "intervalColourbar" ,bool,False), 
     23        RenderingOption('intervalNames', "intervalNames" ,str,None), 
     24        RenderingOption('cmap_max', "Legend Max" ,float,None), 
    2225        RenderingOption('num_contour_lines', "Number of Contour Lines" ,int,10), 
    2326        RenderingOption('contour_font_size', "Contour Label Size" ,str,'medium',["small","medium", "large",]), 
     
    3437        if cmapMax == None: 
    3538            cmapMax = self.variable.max() 
     39         
     40        intervalNames = self.parser.getOption('intervalNames') 
     41        if intervalNames != None: 
     42            intervalNames = intervalNames.split(',') 
     43         
    3644             
    3745        ld = LayerDrawerContour(self.variable,  
     
    4149                                 numLines = self.parser.getOption('num_contour_lines'), 
    4250                                 fontSize = self.parser.getOption('contour_font_size'), 
     51                                 intervalColourbar = self.parser.getOption('intervalColourbar'), 
     52                                 intervalNames=intervalNames, 
    4353                                 transparent=self.transparent) 
    4454         
Note: See TracChangeset for help on using the changeset viewer.