45e2042ce0bd740f2647ffa1f5244eaa3235f474,enthought/chaco/contour_poly_plot.py,ContourPolyPlot,_render,#ContourPolyPlot#Any#,34

Before Change


        if not self._colors_cache_valid:
            self._update_colors()

        gc.save_state()
        gc.set_antialias(True)
        gc.clip_to_rect(self.x, self.y, self.width, self.height)
        gc.set_line_width(0)
        gc.set_alpha(self.alpha)

        for i in range(len(self._levels)-1):
            gc.set_fill_color(self._colors[i])
            gc.set_stroke_color(self._colors[i])
            key = (self._levels[i], self._levels[i+1])
            for poly in self._cached_polys[key]:
                if self.orientation == "h":
                    spoly = self.index_mapper.map_screen(poly)
                else:
                    spoly = array(self.index_mapper.map_screen(poly))[:,::-1]
                gc.lines(spoly)
                gc.close_path()
                gc.draw_path()

        gc.restore_state()

    def _update_polys(self):
         Updates the cache of contour polygons 
        // x and ydata are "fenceposts" so ignore the last value

After Change


        if not self._colors_cache_valid:
            self._update_colors()

        with gc:
            gc.set_antialias(True)
            gc.clip_to_rect(self.x, self.y, self.width, self.height)
            gc.set_line_width(0)
            gc.set_alpha(self.alpha)

            for i in range(len(self._levels)-1):
                gc.set_fill_color(self._colors[i])
                gc.set_stroke_color(self._colors[i])
                key = (self._levels[i], self._levels[i+1])
                for poly in self._cached_polys[key]:
                    if self.orientation == "h":
                        spoly = self.index_mapper.map_screen(poly)
                    else:
                        spoly = array(self.index_mapper.map_screen(poly))[:,::-1]
                    gc.lines(spoly)
                    gc.close_path()
                    gc.draw_path()

    def _update_polys(self):
         Updates the cache of contour polygons 
        // x and ydata are "fenceposts" so ignore the last value
        // XXX: this truncation is causing errors in Cntr() as of r13735
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: enthought/chaco
Commit Name: 45e2042ce0bd740f2647ffa1f5244eaa3235f474
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_poly_plot.py
Class Name: ContourPolyPlot
Method Name: _render


Project Name: enthought/chaco
Commit Name: 45e2042ce0bd740f2647ffa1f5244eaa3235f474
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/polar_line_renderer.py
Class Name: PolarLineRenderer
Method Name: _draw_default_grid


Project Name: enthought/chaco
Commit Name: 45e2042ce0bd740f2647ffa1f5244eaa3235f474
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/polar_line_renderer.py
Class Name: PolarLineRenderer
Method Name: _draw_default_axes