This allows us to use the surface-matplotlib option to debug the
surface-position algorithm even when it's used on phony data that only
contains 'approach'.
('ret2', 'second retract'),
('approach', 'main approach'),
('ret3', 'return to start')]:
- axes.plot(ddict[n]['z'], ddict[n]['deflection'], label=name)
+ if n in ddict:
+ axes.plot(ddict[n]['z'], ddict[n]['deflection'], label=name)
def fit_fn(x, params):
if x <= params[2]:
return params[0] + params[1]*x