dae196696a020b047fde2b280320fcc42acbd12f,deeplabcut/generate_training_dataset/auxfun_drag_label.py,DraggablePoint,on_press,#DraggablePoint#Any#,43

Before Change


                self.final_point = (np.nan,np.nan,self.bodyParts)
                self.point.center = (np.nan,np.nan)
                self.coords.append(self.final_point)
                self.point.figure.canvas.draw()


    def on_motion(self, event):
        

After Change


            click the data point is removed from the plot.
            
            msg = wx.MessageBox("Do you want to remove the label %s ?"%self.bodyParts, "Remove!", wx.YES_NO | wx.ICON_WARNING)
            if msg == 2:
                self.delete_data()

    def delete_data(self):
        self.press = None
        DraggablePoint.lock = None
        self.point.set_animated(False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: dae196696a020b047fde2b280320fcc42acbd12f
Time: 2020-05-02
Author: mathis@rowland.harvard.edu
File Name: deeplabcut/generate_training_dataset/auxfun_drag_label.py
Class Name: DraggablePoint
Method Name: on_press


Project Name: AlexEMG/DeepLabCut
Commit Name: dae196696a020b047fde2b280320fcc42acbd12f
Time: 2020-05-02
Author: mathis@rowland.harvard.edu
File Name: deeplabcut/refine_training_dataset/auxfun_drag.py
Class Name: DraggablePoint
Method Name: on_press


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