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

Added a clear() function to Lua timeseries. #898

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

TheOtherMarcus
Copy link
Contributor

This addition makes it possible to use a dedicated signal to clear the data displayed in PlotJuggler. Example reactive script:

pj_clear = TimeseriesView.find("/pj_clear")
if pj_clear == nil then return end
if pj_clear:size() == 0 then return end
vec = GetSeriesNames()
for k,v in pairs(vec) do TimeseriesView.find(v):clear() end

@facontidavide facontidavide merged commit c6b3af1 into facontidavide:main Jan 9, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants