File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed
Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ class MatplotDisplay2(gpi.GenericWidgetGroup):
5353 def __init__ (self , title , parent = None ):
5454 super ().__init__ (title , parent )
5555
56- #self.data = self.get_data2()
5756 self ._data = None
5857 self .create_main_frame ()
5958 self .on_draw ()
@@ -90,13 +89,6 @@ def create_main_frame(self):
9089 vbox .addWidget (self .mpl_toolbar )
9190 self .setLayout (vbox )
9291
93- # def get_data2(self):
94- # return np.arange(20).reshape([4, 5]).copy()
95- #
96- # def set_data2(self,data):
97- # self._data = data
98- # self.on_draw()
99-
10092 def on_draw (self ):
10193 self .fig .clear ()
10294 self .axes = self .fig .add_subplot (111 )
@@ -107,8 +99,6 @@ def on_draw(self):
10799 if self ._data is None :
108100 return
109101
110- # self.fig.hold(True)
111-
112102 # plot each set
113103 # print "--------------------plot the data"
114104 for data in self ._data :
Original file line number Diff line number Diff line change 3838import os
3939import matplotlib
4040
41- # import matplotlib as mpl
4241print ('matplotlib version: ' , matplotlib .__version__ )
4342
4443import gpi
@@ -137,7 +136,6 @@ def _init_toolbar(self):
137136from matplotlib import markers
138137
139138def get_icon (name ):
140- # import matplotlib
141139 basedir = osp .join (matplotlib .rcParams ['datapath' ], 'images' )
142140 return QtGui .QIcon (osp .join (basedir , name ))
143141
You can’t perform that action at this time.
0 commit comments