11dbbf833199660f0a59791b6ddfc4163cd6a27d,enthought/chaco/contour_line_plot.py,ContourLinePlot,_update_levels,#ContourLinePlot#,150

Before Change


         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



    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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: biolab/orange3
Commit Name: ceb74bf9380bc6f7be25142162bed8dc17998daa
Time: 2020-02-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owcolor.py
Class Name: DiscColorTableModel
Method Name: setData


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