Skip to content

Make graphs updateable #301

@borissmidt

Description

@borissmidt

I've used the ammonite plotly implementation and for each plot it creates a new browser screen so it isn't possible to show the progress of something or visualize a stream.

It would be nice if you had a plot output which you could update with a new plot.

so

val scatter = Scatter(Seq[Double](1, 2, 3), Seq[Double](2, 3, 4))
scatter.plot("hello", addSuffixIfExists= false)

this could become:

val plotWindow = PlotWindow()
val scatter = Scatter(Seq[Double](1, 2, 3, 4), Seq[Double](2, 3, 4, 5))
plotWindow.update("plot", scatter)
val scatter2 = Scatter(Seq[Double](1, 2, 3), Seq[Double](2, 3, 4))
plotWindow.update("plot", scatter2)

I'm not sure how it could be implemented and i agree that it goes against the immutability idea. But it would make it better to have some interactive visualization of the data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions