dfa82ed2636c9b5ab9b16fca2e24c453b20b9dd7,deeplabcut/generate_training_dataset/labeling_toolbox.py,MatplotPanel,__init__,#MatplotPanel#Any#Any#,414
Before Change
class MatplotPanel(wx.Panel):
def __init__(self, parent,config):
self.size=(100,100)
panel1 = wx.Panel.__init__(self, parent)
self.figure = Figure()
self.axes = self.figure.add_subplot(111)
self.sizer = wx.BoxSizer(wx.VERTICAL)
After Change
def __init__(self, parent,config):
panel1 = wx.Panel.__init__(self, parent)
self.figure = Figure()
self.canvas = FigureCanvasWxAgg(self, -1, self.figure)
self.toolbar = Toolbar(self.canvas) // matplotlib toolbar
self.toolbar.EnableTool(1,False)
self.toolbar.Realize()
// self.toolbar.set_active([0,1])
self.toolbar.update()
sizer = wx.BoxSizer(wx.VERTICAL)
// This way of adding to sizer allows resizing
sizer.Add(self.canvas, 1, wx.LEFT | wx.TOP | wx.GROW)
// Best to allow the toolbar to resize!
//sizer.Add(self.toolbar, 0, wx.GROW)
self.SetSizer(sizer)
self.Fit()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: AlexEMG/DeepLabCut
Commit Name: dfa82ed2636c9b5ab9b16fca2e24c453b20b9dd7
Time: 2018-11-19
Author: mathis@rowland.harvard.edu
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MatplotPanel
Method Name: __init__
Project Name: AlexEMG/DeepLabCut
Commit Name: 9e064e1c15965a28f36b4613d2f6697a5db90b81
Time: 2021-03-30
Author: mathis@rowland.harvard.edu
File Name: deeplabcut/gui/video_editing.py
Class Name: Video_Editing
Method Name: __init__
Project Name: AlexEMG/DeepLabCut
Commit Name: c76174d3de7f70bb09d2667f7d241c73a839fd9c
Time: 2021-03-28
Author: 54865575+KonradDanielewski@users.noreply.github.com
File Name: deeplabcut/gui/video_editing.py
Class Name: Video_Editing
Method Name: __init__