Skip to content

BarSeries rectangle calculation for negative values fixed.#2152

Merged
swharden merged 2 commits intoScottPlot:mainfrom
fe-c:fix/bar-series-negative-values-rect-calc
Oct 6, 2022
Merged

BarSeries rectangle calculation for negative values fixed.#2152
swharden merged 2 commits intoScottPlot:mainfrom
fe-c:fix/bar-series-negative-values-rect-calc

Conversation

@fe-c
Copy link
Contributor

@fe-c fe-c commented Oct 5, 2022

Before:
Before

After:
After

@swharden swharden requested a review from bclehmann October 6, 2022 01:24
@swharden swharden linked an issue Oct 6, 2022 that may be closed by this pull request
Copy link
Member

@bclehmann bclehmann left a comment

Choose a reason for hiding this comment

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

Looks good to me, this is unfortunately a bug I've seen a lot.

Perhaps we should move this logic into Bar, but I'm unsure. I don't anticipate that we'd transplant Bar into BarPlot anyways, so it can probably stay here.

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.

BarSeries: fails to plot negative values

3 participants