Skip to content

Change Plot.ScaleFactor from float to double#3455

Merged
swharden merged 4 commits intoScottPlot:mainfrom
MCF:scalefactor-to-double
Mar 14, 2024
Merged

Change Plot.ScaleFactor from float to double#3455
swharden merged 4 commits intoScottPlot:mainfrom
MCF:scalefactor-to-double

Conversation

@MCF
Copy link
Contributor

@MCF MCF commented Mar 10, 2024

As per the title. Will fix #3454

@swharden swharden changed the title SP5 Plot: Change Plot.ScaleFactor from float to double Change Plot.ScaleFactor from float to double Mar 13, 2024
@swharden
Copy link
Member

haha, that change touched a lot more lines of code than I expected it would 😅

I'll see if I can simplify this somehow, and merge shortly. Thanks so much! 🚀

store a float-casted version of ScaleFactor to prevent inline casting in internal calls that use scale factor when working with pixel (single precision floating point) units
@swharden swharden enabled auto-merge March 14, 2024 23:58
@swharden swharden merged commit c83bd84 into ScottPlot:main Mar 14, 2024
@MCF MCF deleted the scalefactor-to-double branch March 15, 2024 14:37
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.

Plot: ScaleFactor should be a double

2 participants