``` val commands: List<PlotView.Command>...
# announcements
e
Copy code
val commands: List<PlotView.Command> = texture_view.commands
    commands.forEach { when (it){
        is PlotView.Command.Clear -> plot.clear()
        is PlotView.Command.AddPoints -> plot.addPoints(it.x, it.y)
        is PlotView.Command.AddPoint -> plot.addPoint(it.x, it.y)
    }}