Skip to content

Adding markers to datalog plotting#5

Open
scatwang wants to merge 5 commits into
afarago:masterfrom
scatwang:master
Open

Adding markers to datalog plotting#5
scatwang wants to merge 5 commits into
afarago:masterfrom
scatwang:master

Conversation

@scatwang
Copy link
Copy Markdown

@scatwang scatwang commented Nov 1, 2025

This change enables the plotting system to automatically add a visual marker to the chart when it detects the log message pattern plot: marker: marker_name in stdout.
The primary benefit is to provide users with immediate, context-specific annotations on the data, significantly aiding data analysis and interpretation.

Screenshot 2025-11-01 at 11 08 22 AM

@afarago
Copy link
Copy Markdown
Owner

afarago commented Nov 9, 2025

Nice addition.
What happens when marker gets out of the focus window?

At the moment both the backend (plot.ts) removes data rows after PLOT_MAX_ROWS
and also DataLogWebview.ts keeps only the last MAX_DATA_POINTS points
(could be improved though)

I do not see any memory conservation / cleanup for the markers.
Could you add these as well?

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