scipp / scipp/plopp

Add a new `residuals_plot`?

Open
#201 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Python
Stars
12
Forks
6
PR merge metrics
No merged PRs in 30d

Description

This example shows how to make a plot of multiple lines with a residual difference panel below the main plot.

Is this something that is common enough that we could have a dedicated function for creating it?
For example, plopp.residual_plot(b, c, reference=a) would show 3 lines in the main panel and b-a and c-a in the residuals panel.

I guess it would be most useful if it could be used as a view in a graph of nodes, and not just a single purpose function.
This would mean that it could be used in combination with a slider, where both the main panel and the residuals would update when moving the slider.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked “Axes placement” example to understand the existing multi-panel approach, then inspect the APIs for graph views and sliders mentioned in the issue. Define how a residual plot would combine multiple main lines, reference differences, and synchronized updates before identifying the implementation and tests needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.