Skip to content

Add RAGPlotter class#1255

Open
csherman-dstl wants to merge 3 commits intomainfrom
rag_plots
Open

Add RAGPlotter class#1255
csherman-dstl wants to merge 3 commits intomainfrom
rag_plots

Conversation

@csherman-dstl
Copy link
Copy Markdown
Contributor

Add plotter to display metric values on individual tracks for visualisation

@csherman-dstl csherman-dstl requested a review from a team as a code owner February 23, 2026 14:39
@csherman-dstl csherman-dstl requested review from nperree-dstl and sdhiscocks and removed request for a team February 23, 2026 14:39
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 70.31250% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.45%. Comparing base (0f311b4) to head (2c9e9b0).

Files with missing lines Patch % Lines
stonesoup/plotter.py 70.31% 14 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1255      +/-   ##
==========================================
- Coverage   94.54%   94.45%   -0.10%     
==========================================
  Files         233      233              
  Lines       16788    16852      +64     
  Branches     2358     2371      +13     
==========================================
+ Hits        15873    15918      +45     
- Misses        614      629      +15     
- Partials      301      305       +4     
Flag Coverage Δ
integration 66.66% <23.43%> (-0.16%) ⬇️
unittests 91.82% <70.31%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

return 2
return 1

def plot_tracks(self, tracks, mapping, metrics, colours=None):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May still be useful to have kwargs being passed through here for other options.

elif tracklet_colour == state_colour:
pass
elif tracklet_colour != state_colour:
super().plot_tracks(tracklet, mapping, label=track.id,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure you'd always want the label to be track.id, as may want to group track to common legend item to toggle on and off. Maybe default track.id if label not provided?

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