open-simulation-platform / cosim-demo-app

Application demonstrating libcosim features
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
17 stars 4 forks source link

Deleting only selected variables from a plot [client] #149

Open kevinksyTRD opened 4 years ago

kevinksyTRD commented 4 years ago

As a user, I would like to see the legends of the signals and remove only selected variables from a plot so that I can easily remove the unwanted signals without removing all and restart selecting the signals from scratch.

ljamt commented 4 years ago

Agree that it would be nice select what variable to remove, but did you know that by clicking the legend you'll toggle the visibility of the variable? Will that help you for now? image

kevinksyTRD commented 4 years ago

I didn't know that. That will help. At least, you could make the legends visible before running the simulation.

cesarcarc commented 4 years ago

It is a bit unclear to me what is the conclusion here. Should we support deleting individual signals or just make the legend visible before running would be enough?

I have checked a bit and deleting an individual signal requires an update on cse-server-go as there is no function for it in the server side. I have not investigated how to make the legend visible before running, but I guess it depends on the websockets implementation.

ljamt commented 4 years ago

I have a local branch from some time back where I looked into this. Will share soon.

ljamt commented 4 years ago

I have not investigated how to make the legend visible before running, but I guess it depends on the websockets implementation.

This is a plotly feature (limitation), it does not show legend when there is no data.

ljamt commented 4 years ago

At least, you could make the legends visible before running the simulation.

Made a separate issue for this open-simulation-platform/cse-client#122