3abe21872cf528c3623d342a5ea8f398e9b5ad5b,lib/matplotlib/contour.py,ContourSet,_process_levels,#ContourSet#,1235

Before Change


        if self.extend in ("both", "min"):
            self._levels.insert(0, min(self.levels[0], self.zmin) - 1)
        if self.extend in ("both", "max"):
            self._levels.append(max(self.levels[-1], self.zmax) + 1)
        self._levels = np.asarray(self._levels)

        if not self.filled:

After Change


        // Layer values are mid-way between levels in screen space.
        if self.logscale:
            // Avoid overflow by taking sqrt before multiplying.
            self.layers = (np.sqrt(self._levels[:-1])
                           * np.sqrt(self._levels[1:]))
        else:
            self.layers = 0.5 * (self._levels[:-1] + self._levels[1:])

    def _process_colors(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: 3abe21872cf528c3623d342a5ea8f398e9b5ad5b
Time: 2018-07-08
Author: efiring@hawaii.edu
File Name: lib/matplotlib/contour.py
Class Name: ContourSet
Method Name: _process_levels


Project Name: nipy/dipy
Commit Name: 8a1048dd0930be080f45f32c13050e6ed59f93f9
Time: 2016-12-20
Author: rutger.fick@inria.fr
File Name: dipy/reconst/mapmri.py
Class Name: MapmriModel
Method Name: fit


Project Name: aertslab/pySCENIC
Commit Name: 4fa15dade9f2174a602a28682d2f1013dba3ef78
Time: 2018-05-09
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/binarization.py
Class Name:
Method Name: _derive_threshold