New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signal Plot: color lines and markers separately #2288
Comments
Hi @Nuliax7, ScottPlot/src/ScottPlot4/ScottPlot/Plottable/SignalPlotBase.cs Lines 67 to 69 in c168325
|
@StendProg, |
Thanks for the suggestion @Nuliax7! I'm making the change now to allow lines and markers to be colored independently and will add this example to the cookbook double[] values = DataGen.Sin(51);
var sig = plt.AddSignal(values);
sig.LineColor = Color.LightBlue;
sig.LineWidth = 3;
sig.MarkerColor = Color.Blue; |
ScottPlot Version: 4.1.59
Operating System: Windows 11
Application Type: WPF
Question:
The last color set changes everything.
For example: if white is indicated for the line, and red is indicated for the marker on the next line, then the entire line and markers will be red. Or vice versa, if you first specify the marker in red and the line is white, then everything will be white.
This happens if Signal Plot is selected.
Is this the right behavior? As expected, the different specified colors should be displayed differently. Looks like a bug.
I tried to set the color for other properties, the behavior is the same.
The text was updated successfully, but these errors were encountered: