538fb748ba9b2e6615a6c2b22b07603c81e7e233,lib/matplotlib/axis.py,Axis,grid,#Axis#Any#Any#,1388

Before Change


                self._gridOnMajor = not self._gridOnMajor
            else:
                self._gridOnMajor = b
            for tick in self.majorTicks:  // don"t use get_ticks here!
                if tick is None:
                    continue
                tick.gridOn = self._gridOnMajor
                if len(kwargs):
                    tick.gridline.update(kwargs)
            self._major_tick_kw["gridOn"] = self._gridOnMajor
        self.stale = True

    def update_units(self, data):

After Change


        if len(kwargs):
            b = True
        which = which.lower()
        gridkw = {"grid_" + item[0]: item[1] for item in kwargs.items()}
        if which in ["minor", "both"]:
            if b is None:
                self._gridOnMinor = not self._gridOnMinor
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: matplotlib/matplotlib
Commit Name: 538fb748ba9b2e6615a6c2b22b07603c81e7e233
Time: 2018-01-07
Author: efiring@hawaii.edu
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: grid


Project Name: bokeh/bokeh
Commit Name: ef90233e8a378c3049cb6955ba88f6598dc545d0
Time: 2015-12-22
Author: bryanv@continuum.io
File Name: examples/plotting/file/texas.py
Class Name:
Method Name:


Project Name: mozilla/bugbug
Commit Name: b5b1b6af59837c6402ac3ca8d2285c5907885be4
Time: 2020-10-19
Author: mcastelluccio@mozilla.com
File Name: bugbug/model.py
Class Name: CommitModel
Method Name: items_gen