-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
BUGunexpected behaviorunexpected behavior
Description
This is seemingly back to how it was with countsFrac being normalized but countsFracCurve not with Scottplot 4.1.11-beta?
Unless I'm being very stupid I'm getting the same behavior I described in issue #624, code below updated to 4.1.11
var plt = new ScottPlot.Plot(600, 400);
Random rand = new Random(0);
double[] values = DataGen.RandomNormal(rand, pointCount: 1000, mean: 50, stdDev: 20);
var hist = new ScottPlot.Statistics.Histogram(values, min: 0, max: 100);
var bar = plt.AddBar(hist.countsFrac, hist.bins);
bar.BarWidth = hist.binSize * 1.2; // oversize to reduce render artifacts
bar.BorderLineWidth = 0;
plt.AddScatter(hist.bins, hist.countsFracCurve, lineWidth:2, markerSize:0);
// decorate the plot
plt.XLabel("Value (-)");
plt.YLabel("Fraction (-)");
plt.SetAxisLimits(yMin: 0);
plt.Grid(lineStyle: LineStyle.Dot);
plt.SaveFig("stats_histogram.png");Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGunexpected behaviorunexpected behavior
