Skip to content

Plot option to subtract mean value from all samples#3240

Merged
j9ac9k merged 2 commits intopyqtgraph:masterfrom
wetzeld:mean-value-subtraction
Mar 24, 2025
Merged

Plot option to subtract mean value from all samples#3240
j9ac9k merged 2 commits intopyqtgraph:masterfrom
wetzeld:mean-value-subtraction

Conversation

@wetzeld
Copy link
Copy Markdown
Contributor

@wetzeld wetzeld commented Feb 7, 2025

Hello Team,

this PR introduces a new plot transformation that subtracts the mean value of a dataset from all samples.

This makes plotting / analyzing two signals with different offsets much easier if you are only interested in the "AC" part of the signal.

For this I added a new menu item to the Plot Options -> Transformations menu. This was done using the Qt Designer and pyuic6 in v6.1.0 to keep the diff rather small.

image

@wetzeld
Copy link
Copy Markdown
Contributor Author

wetzeld commented Mar 4, 2025

@j9ac9k, I think the failed check has nothing to do with this PR but seems to be a temporary failure. Could you maybe re-run the checks?

Besides that, any thoughts on the PR or the feature itself?

@wetzeld wetzeld force-pushed the mean-value-subtraction branch from c4dc73b to 5c5454d Compare March 21, 2025 07:52
@wetzeld
Copy link
Copy Markdown
Contributor Author

wetzeld commented Mar 21, 2025

Rebased on current master

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Mar 24, 2025

Thanks for the PR @wetzeld

We discussed in another issue/PR the addition of having a "plugin" system to add other items, but we don't have that yet so I'll merge this. Thanks for the PR @wetzeld

@j9ac9k j9ac9k merged commit 87c6ac2 into pyqtgraph:master Mar 24, 2025
36 checks 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