-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
BUGunexpected behaviorunexpected behavior
Description
Bug Report: Constant values in a Scatter results in an empty graph in SP5
Issue: Basically, if data in either the X or Y axis all have the same value, instead of drawing the points in a straight line, it results in an empty plot with no tick or markings in that axis as well. It does pose a serious issue in case of handling numerous plots where such values are important to be conveyed to the end user.
Reproducing:
Use the following code to reproduce this:
Plot plot = new();
plot.XAxis.Label.Text = "X";
plot.YAxis.Label.Text = "Y";
double[] dataX = { 1, 4, 9, 16, 25 };
double[] dataY = { 5, 5, 5, 5, 5 };
plot.Add.Scatter(dataX, dataY);
plot.Save("plot.png", 400,300); System Details
- ScottPlot Version: 5.0.5-beta
- Operating System: Windows 11
- Application Type: Console
- .NET Version: 6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGunexpected behaviorunexpected behavior
