6889c6dbf8511382250bea9a5a36ceb0e1912f01,lib/matplotlib/projections/polar.py,PolarAxes,get_yaxis_text1_transform,#PolarAxes#Any#,550

Before Change


        if full:
            angle = self.get_rlabel_position()
        else:
            angle = np.rad2deg(thetamin)
        if angle < 0:
            angle += 360
        angle %= 360

        // NOTE: Due to a bug, previous code always used bottom left, contrary
        // to its original intentions here.
        valign = [["top", "bottom", "bottom", "top"],
                  // ["bottom", "bottom", "top", "top"]]
                  ["bottom", "bottom", "bottom", "bottom"]]
        halign = [["left", "left", "right", "right"],
                  // ["left", "right", "right", "left"]]
                  ["left", "left", "left", "left"]]

        ind = np.digitize([angle], np.arange(0, 361, 90))[0] - 1

        return self._yaxis_text_transform, valign[full][ind], halign[full][ind]

    def get_yaxis_text2_transform(self, pad):

After Change


        thetamin, thetamax = self._realViewLim.intervalx
        if _is_full_circle_rad(thetamin, thetamax):
            return self._yaxis_text_transform, "bottom", "left"
        elif self.get_theta_direction() > 0:
            halign = "left"
            pad_shift = _ThetaShift(self, pad, "min")
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: 6889c6dbf8511382250bea9a5a36ceb0e1912f01
Time: 2017-09-25
Author: tcaswell@gmail.com
File Name: lib/matplotlib/projections/polar.py
Class Name: PolarAxes
Method Name: get_yaxis_text1_transform


Project Name: matplotlib/matplotlib
Commit Name: 8c430e84863f1a1f7492206ea399215b75a7c4cd
Time: 2017-09-25
Author: quantum.analyst@gmail.com
File Name: lib/matplotlib/projections/polar.py
Class Name: PolarAxes
Method Name: get_yaxis_text1_transform


Project Name: matplotlib/matplotlib
Commit Name: 9529875907dbc3dc51556c51c9bbfa45325502ce
Time: 2017-09-25
Author: quantum.analyst@gmail.com
File Name: lib/matplotlib/projections/polar.py
Class Name: ThetaTick
Method Name: update_position