From fa657c05ccd502d302d093126e8272cccda90244 Mon Sep 17 00:00:00 2001 From: devicerandom Date: Tue, 3 Mar 2009 17:58:58 +0000 Subject: [PATCH] (autopeak.py) fixed stuff about color management --- autopeak.py | 5 ++++- hooke.py | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/autopeak.py b/autopeak.py index 8638cc2..fdce95e 100644 --- a/autopeak.py +++ b/autopeak.py @@ -244,8 +244,10 @@ class autopeakCommands: fitplot.add_set(xfit,yfit) if len(fitplot.styles)==0: fitplot.styles=[] + fitplot.colors=[] else: fitplot.styles.append(None) + fitplot.colors.append(None) else: #2-value fit p_leng=params[1]*(1.0e+9) #check if persistent length makes sense. otherwise, discard peak. @@ -261,6 +263,7 @@ class autopeakCommands: fitplot.add_set(xfit,yfit) if len(fitplot.styles)==0: fitplot.styles=[] + fitplot.colors=[] else: fitplot.styles.append(None) fitplot.colors.append(None) @@ -271,7 +274,7 @@ class autopeakCommands: #add basepoints to fitplot fitplot.add_set([self.basepoints[0].graph_coords[0],self.basepoints[1].graph_coords[0]],[self.basepoints[0].graph_coords[1],self.basepoints[1].graph_coords[1]]) fitplot.styles.append('scatter') - + fitplot.colors.append(None) #Show wlc fits and peak locations self._send_plot([fitplot]) diff --git a/hooke.py b/hooke.py index 4311070..fe02f25 100755 --- a/hooke.py +++ b/hooke.py @@ -275,8 +275,8 @@ class MainWindow(wx.Frame): self.click_plot=0 #FIXME: These could become a single flag with different (string?) values - self.on_measure_distance=False - self.on_measure_force=False + #self.on_measure_distance=False + #self.on_measure_force=False self.plot_fit=False @@ -284,13 +284,16 @@ class MainWindow(wx.Frame): self.num_of_points = 2 #Data. + ''' self.current_x_ext=[[],[]] self.current_y_ext=[[],[]] self.current_x_ret=[[],[]] self.current_y_ret=[[],[]] + self.current_x_unit=[None,None] self.current_y_unit=[None,None] + ''' #Initialize xaxes, yaxes #FIXME: should come from config -- 2.26.2