I want to move a line by he angles provided by a the user using slider.
Currently I’m plotting using this code taken from github repo but I’m having problem in updating it via slider .
def add_needle(speed, units):
max_speed = max_kmh if units == “kmh” else max_mph
speed = min(max(speed, 0), max_speed)
total_angle = start_angle - end_angle
angle = total_angle*float(speed)/max_speed
angle= start_angle - angle
plot.add_glyph(Ray(x=0, y=0, length=data(0.75), angle=angle, line_color=“black”, line_width=3))