d6fadfc1dc499416b31425c8f2ced5923bacb51f,lib/matplotlib/widgets.py,TextBox,_rendercursor,#TextBox#,754

Before Change


        bb = wt_disp.get_window_extent()
        inv = self.ax.transData.inverted()
        bb = inv.transform(bb)
        wt_disp.set_visible(False)
        if no_text:
            bb[1, 0] = bb[0, 0]
        // hack done
        self.cursor.set_visible(False)

After Change


        if not widthtext:  // Use the comma for the height, but keep width to 0.
            bb.x1 = bb.x0
        self.cursor.set(
            segments=[[(bb.x1, bb.y0), (bb.x1, bb.y1)]], visible=True)
        self.text_disp.set_text(text)

        self.ax.figure.canvas.draw()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: matplotlib/matplotlib
Commit Name: d6fadfc1dc499416b31425c8f2ced5923bacb51f
Time: 2020-04-10
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/widgets.py
Class Name: TextBox
Method Name: _rendercursor


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 71b1e873e70dca43cd12870d4c0f497015f41970
Time: 2021-02-17
Author: g.lemaitre58@gmail.com
File Name: examples/under-sampling/plot_illustration_nearmiss.py
Class Name:
Method Name: make_plot_despine


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 71b1e873e70dca43cd12870d4c0f497015f41970
Time: 2021-02-17
Author: g.lemaitre58@gmail.com
File Name: examples/under-sampling/plot_illustration_tomek_links.py
Class Name:
Method Name: make_plot_despine


Project Name: arviz-devs/arviz
Commit Name: 2b46c162e0e0b35ad53536bfe8cac95f3d6d464c
Time: 2018-04-26
Author: aloctavodia@gmail.com
File Name: arviz/plots/energyplot.py
Class Name:
Method Name: energyplot