11dbbf833199660f0a59791b6ddfc4163cd6a27d,enthought/chaco/contour_line_plot.py,ContourLinePlot,_update_levels,#ContourLinePlot#,150
Before Change
def _update_levels(self):
Updates the levels cache.
low, high = self .value.get_bounds()
if self.levels == "auto":
self._levels = list(linspace(low, high, 10))
elif isinstance(self.levels, int):
self._levels = list(linspace(low, high, self.levels))
else:
self._levels = self.levels
self._level_cache_valid = True
self._contour_cache_valid = False
self._widths_cache_valid = False
self._styles_cache_valid = False
After Change
self._cached_contours[level].append(transpose(trace))
self._contour_cache_valid = True
def _update_levels(self ):
Extends the parent method to also invalidate some other things
super (ContourLinePlot, self )._update_levels()
self._contour_cache_valid = False
self._widths_cache_valid = False
self._styles_cache_valid = False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances Project Name: enthought/chaco
Commit Name: 11dbbf833199660f0a59791b6ddfc4163cd6a27d
Time: 2009-06-26
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_line_plot.py
Class Name: ContourLinePlot
Method Name: _update_levels
Project Name: enthought/chaco
Commit Name: 11dbbf833199660f0a59791b6ddfc4163cd6a27d
Time: 2009-06-26
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_line_plot.py
Class Name: ContourLinePlot
Method Name: _update_levels
Project Name: DistrictDataLabs/yellowbrick
Commit Name: c6ee8ee45b7b854fa2731b6f238e223ec24e1cab
Time: 2019-07-27
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/features/manifold.py
Class Name: Manifold
Method Name: fit_transform
Project Name: enthought/chaco
Commit Name: 11dbbf833199660f0a59791b6ddfc4163cd6a27d
Time: 2009-06-26
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_poly_plot.py
Class Name: ContourPolyPlot
Method Name: _update_levels