45e2042ce0bd740f2647ffa1f5244eaa3235f474,enthought/chaco/contour_line_plot.py,ContourLinePlot,_render,#ContourLinePlot#Any#,71
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_alpha(self.alpha)
gc.set_line_join(constants.JOIN_BEVEL)
gc.set_line_cap(constants.CAP_ROUND)
for i in range(len(self._levels)):
gc.set_stroke_color(self._colors[i])
gc.set_line_width(self._widths[i])
gc.set_line_dash(self._styles[i])
for trace in self._cached_contours[self._levels[i]]:
if self.orientation == "h":
strace = self.index_mapper.map_screen(trace)
else:
strace = array(self.index_mapper.map_screen(trace))[:,::-1]
gc.begin_path()
gc.lines(strace)
gc.stroke_path()
gc.restore_state()
def _update_contours(self):
Updates the cache of contour lines
// 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_alpha(self.alpha)
gc.set_line_join(constants.JOIN_BEVEL)
gc.set_line_cap(constants.CAP_ROUND)
for i in range(len(self._levels)):
gc.set_stroke_color(self._colors[i])
gc.set_line_width(self._widths[i])
gc.set_line_dash(self._styles[i])
for trace in self._cached_contours[self._levels[i]]:
if self.orientation == "h":
strace = self.index_mapper.map_screen(trace)
else:
strace = array(self.index_mapper.map_screen(trace))[:,::-1]
gc.begin_path()
gc.lines(strace)
gc.stroke_path()
def _update_contours(self):
Updates the cache of contour lines
// x and ydata are "fenceposts" so ignore the last value
// XXX: this truncaton is causing errors in Cntr() as of r13735
In pattern: SUPERPATTERN
Frequency: 6
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_line_plot.py
Class Name: ContourLinePlot
Method Name: _render
Project Name: enthought/chaco
Commit Name: 4c96280f3b91a5ef7b63dc572012f273c7ca0b46
Time: 2010-10-10
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: examples/canvas/cliptest.py
Class Name: Box
Method Name: _draw_mainlayer
Project Name: enthought/chaco
Commit Name: 45e2042ce0bd740f2647ffa1f5244eaa3235f474
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/lasso_overlay.py
Class Name: LassoOverlay
Method Name: overlay
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: 394a684529f480a77cd5a97effe3dc9170f2d916
Time: 2010-10-10
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/candle_plot.py
Class Name: CandlePlot
Method Name: _draw_plot
Project Name: enthought/chaco
Commit Name: 45e2042ce0bd740f2647ffa1f5244eaa3235f474
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/scatter_inspector_overlay.py
Class Name: ScatterInspectorOverlay
Method Name: _render_marker_at_indices