Changeset 5886


Ignore:
Timestamp:
26/10/09 16:24:39 (10 years ago)
Author:
pnorton
Message:

Fixed a couple of bugs.

Location:
qesdi/geoplot/trunk/lib/geoplot
Files:
4 edited

Legend:

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

    r5876 r5886  
    4848        intervalColourbar = isinstance(colourScheme, geoplot.colour_scheme.IntervalColourScheme) 
    4949         
     50        log.debug("intervalColourbar = %s, self.colourBarStyle = %s" % (intervalColourbar, self.colourBarStyle)) 
     51         
    5052        if self.colourBarStyle == 'legend' and intervalColourbar: 
    5153            self._drawLegendColourBar(colourBarAxis, colourScheme, fontSize) 
     
    5658 
    5759    def _drawContiunousColourBar(self, axes, colourScheme, fontSize): 
     60         
    5861        intervalColourbar = isinstance(colourScheme, geoplot.colour_scheme.IntervalColourScheme) 
    5962          
    6063        kwargs = {} 
    61          
    6264        kwargs['cmap'] = colourScheme.colourMap 
    6365        kwargs['norm'] = colourScheme.norm 
  • qesdi/geoplot/trunk/lib/geoplot/grid.py

    r5876 r5886  
    5151            return Grid(transformedBoundsX, transfromedBoundsY, 
    5252                        transformedMidpointsX, transformedMidpointsY, 
    53                         self.values.copy(), self._maxValue, self.minValue) 
     53                        self.values.copy(), self._maxValue, self._minValue) 
    5454     
    5555    def getMaxValue(self): 
  • qesdi/geoplot/trunk/lib/geoplot/grid_builder_lat_lon_subset.py

    r5876 r5886  
    5858        reducedVar = self._getResizedVar(xLimits, yLimits) 
    5959         
    60         targetShape = (targetWidth, targetHeight) 
     60        factor = 3.0 
     61        targetShape = (targetHeight* factor, targetWidth * factor) 
    6162         
    6263        log.debug("xLimits = %s, yLimits = %s" % (xLimits, yLimits,)) 
  • qesdi/geoplot/trunk/lib/geoplot/layer_drawer_grid_fast.py

    r5876 r5886  
    9090                 
    9191        scheme = self._csBuilder.buildScheme(grid) 
     92        cmap = scheme.colourMap 
     93         
     94        if self.transparent: 
     95            #set the bad colour to transparent 
     96            cmap.set_bad('w', 0.0) 
    9297         
    9398        #draw the grid on the axis 
     
    96101                              limits=(xLimits, yLimits), 
    97102                              norm=scheme.norm, 
    98                               cmap=scheme.colourMap, 
     103                              cmap=cmap, 
    99104                              assumeBoundsParallel=True) 
    100105         
Note: See TracChangeset for help on using the changeset viewer.