b5474182feb30125bc78ebff838ba7bb9000de78,chaco/contour_poly_plot.py,ContourPolyPlot,_update_polys,#ContourPolyPlot#,69

Before Change


         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
        xdata = self.index._xdata.get_data()
        ydata = self.index._ydata.get_data()
        xs = linspace(xdata[0], xdata[-1], len(xdata)-1)
        ys = linspace(ydata[0], ydata[-1], len(ydata)-1)
        xg, yg = meshgrid(xs, ys)
        if self.orientation == "h":
            c = Cntr(xg, yg, self.value.raw_value)

After Change


            data = self.value.get_data()
            mask = isfinite(data)

        x_data, y_data = self.index.get_data()
        xs = x_data.get_data()
        ys = y_data.get_data()
        xg, yg = meshgrid(xs, ys)

        // note: contour wants mask True in invalid locations
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: enthought/chaco
Commit Name: b5474182feb30125bc78ebff838ba7bb9000de78
Time: 2016-11-16
Author: cwebster@enthought.com
File Name: chaco/contour_poly_plot.py
Class Name: ContourPolyPlot
Method Name: _update_polys


Project Name: nilearn/nilearn
Commit Name: 02806a3dbb8250b6455ec63ac78348a08ba376e8
Time: 2012-10-02
Author: alexandre.abraham@cea.fr
File Name: plot_nifti_simple.py
Class Name:
Method Name:


Project Name: enthought/chaco
Commit Name: b5474182feb30125bc78ebff838ba7bb9000de78
Time: 2016-11-16
Author: cwebster@enthought.com
File Name: chaco/contour_line_plot.py
Class Name: ContourLinePlot
Method Name: _update_contours