def update_curve(): # parse x and y component f_x = arc_functions.parser(x_component_input.value) f_y = arc_functions.parser(y_component_input.value) t = np.linspace(arc_settings.t_value_min, arc_settings.t_value_max, arc_settings.resolution) # evaluation interval x = f_x(t) y = f_y(t) # saving data to plot source_curve.data = dict(x=x, y=y)
def update_point(parametrization_type): t0 = get_parameter(parametrization_type) f_x_str = x_component_input.value f_y_str = y_component_input.value f_x = arc_functions.parser(f_x_str) f_y = arc_functions.parser(f_y_str) x0 = f_x(t0) y0 = f_y(t0) point_dict = dict(x=[x0], y=[y0]) return point_dict