Is there anyway to implement animation in plots? S...
# datascience
y
Is there anyway to implement animation in plots? Something like this
Here it is showing sorting algorithm
a
It depends on a plotting library you use. It is possible in Polotly-kt. It supports dynamic data change. As for lets-plot, it seems that it does not support dynamic data updates at the moment. See https://github.com/JetBrains/lets-plot-kotlin/issues/137. There seem to be some to trick to make it work.
In plotly you need to use plotlykt-server artifact for dynamic updates.
y
Thanks. Is there a support in kandy library as well?
a
@Andrei Kislitsyn says that it is possible to add incremental updates to kandy if the target supports it, but primary target is lets-plot and it does not at the moment.
a
That's true. Currently kandy doesn't support dynamic changes / animation.