Dynamic graph color change

figure adding

signal_figure.line(x='x', y='y', source=self.__pool_signal[index],
                                  name='some_name', color='black')

Is it possible to change the color of the line after the graph is already drawn?
I must dynamically change color of figure
for example something like that.:

signal_figure.color = 'red'

Have you tried using your own example?

I know, that it’s not work. I mean for example something like that.

Ah, I misread the example. Just store the result of the call to line in a variable (say, line_renderer) and use line_renderer.glyph.color = 'red'. I didn’t test it but it should work.

1 Like

Thank you. It works.