I have a scatter plot for a data source and I also have selectors for the scatter X and Y.
So I just want to update the plot whenever the user selects a different X or Y for the scatter.
What is a good way to do this. I used to replace the whole plot, i.e. remove it from layout and make a new one,
but I don’t think that is a good way.
There must be some way to tell the figure that redraw with a different X, Y or both … right?
I am not changing the source, just the X and Y for the scatter.
I get the initial plot up fine, but not sure if I should update via a “patch” (and if so how do I make the patch)
or an update or something else like layout.set_selected()
I make the plot using
ScatterPlot = Figure()
ScatterPlot.scatter(…)
I am actually not sure if that is also best practice. The ScatterPlot.scatter() returns a glyph renderer, should I somehow be using that instead of the Figure?
I clearly need a better understanding of Figure, figure, Plot, and update & patch.
Any pointers to some examples and suggestions would be great.
Thanks greatly
- john

