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.
fitplot.add_set(xfit,yfit)
if len(fitplot.styles)==0:
fitplot.styles=[]
+ fitplot.colors=[]
else:
fitplot.styles.append(None)
fitplot.colors.append(None)
#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])
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
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