Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean a Graph #2270

Closed
ghost opened this issue May 23, 2022 · 1 comment
Closed

clean a Graph #2270

ghost opened this issue May 23, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented May 23, 2022

I am trying to clean a Graph like CSS with method clearGraph but it doesn't exist in phoebus.
Is there any way to clean a Graph in Phoebus?

@kasemir
Copy link
Collaborator

kasemir commented May 25, 2022

Note that the plots are slightly different, see https://github.com/ControlSystemStudio/phoebus/wiki/Display-Builder-Plot-Compatibility

The XYPlot plots waveforms, either a Y waveform over its array indices, or a Y waveform for values over an X waveform for positions. To 'clear' the plot you'd have to clear the waveform PVs on the IOC. For example, if you're using a 'compress' record, you'd reset its buffer.

The Data Browser plot shows historic data followed by live samples. I've added the 'refresh' option that's always been in the context menu of the standalone data browser plot to the data browser widget, and made it clear the live samples. You'll have to deal with the users who from now on complain that their live samples that they collected in the last hour are gone, and if you have archive data sources configured, then you'll of course see data from there after the refresh, so if you really want to clear the graph, you'll have to delete the data in for example the archive appliance.

The Stripchart widget is just a simpler version of the Data Browser widget, which uses a list of PV names configured right on the widget instead of a separate data browser *.plt file, and the Stripchart widget now has the same 'refresh' entry in its context menu.

@kasemir kasemir closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant