def PlotContact(self,event):
'''
plots the contact point
+ DEPRECATED!
'''
self.axes[0].hold(True)
self.current_contact_index=event.contact_index
self._replot()
self.clicked_points=[]
+ def OnMeasurePoints(self,event):
+ '''
+ trigger flags to measure N points
+ '''
+ self.click_flags_functions['measure_points'][0]=True
+ if 'num_of_points' in dir(event):
+ self.num_of_points=event.num_of_points
+ if 'set' in dir(event):
+ self.measure_set=event.set
def ClickPoint0(self,event):
self.current_plot_dest=0
if value[0]:
eval('self.'+value[1]+'(event)')
- def OnMeasurePoints(self,event):
- '''
- trigger flags to measure N points
- '''
- self.click_flags_functions['measure_points'][0]=True
- if 'num_of_points' in dir(event):
- self.num_of_points=event.num_of_points
- if 'set' in dir(event):
- self.measure_set=event.set
+
def MeasurePoints(self,event,current_set=1):
dest=self.current_plot_dest
if len(params)==1: #if we did choose 1-value fit
p_leng=pl_value
c_leng=params[0]*(1.0e+9)
- sigma_p_lengt=0
+ sigma_p_leng=0
sigma_c_leng=fit_errors[0]*(1.0e+9)
force = abs(y-avg)*(1.0e+12)
else: #2-value fit