Skip to content

SP5 Plot: Fix GetPixel bug when ScaleFactor is not 1.0#3328

Merged
swharden merged 4 commits intoScottPlot:mainfrom
MCF:fix-GetPixel
Feb 19, 2024
Merged

SP5 Plot: Fix GetPixel bug when ScaleFactor is not 1.0#3328
swharden merged 4 commits intoScottPlot:mainfrom
MCF:fix-GetPixel

Conversation

@MCF
Copy link
Contributor

@MCF MCF commented Jan 31, 2024

Fixes #3327

A per title, fixes the GetPixel bug. Includes 2 new unit tests for the fix.

I've taken the liberty of updating the CHANGELOG. Apologies if this makes the merge more complicated.

MCF and others added 4 commits January 31, 2024 11:40
The input Coordinates where being scaled which was incorrect.
Output Pixels are now being scaled, which is correct.
Convert from Pixel to Coordinates and back again - with the default
ScaleFactor of 1.0 and with a non-default of 2.5.
@swharden
Copy link
Member

This looks great! Thanks @MCF. I was sick for a few weeks and got a bit behind on issues and PRs, but I'm happy to merge this in now. Thanks again!

@swharden swharden merged commit 5bf378e into ScottPlot:main Feb 19, 2024
@MCF MCF deleted the fix-GetPixel branch February 19, 2024 05:26
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.

SP5 Plot.GetPixel returns incorrect values when ScaleFactor is not 1.0

2 participants