Skip to content

Signal Plot: color lines and markers separately #2288

@Nuliax7

Description

@Nuliax7

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.

var plot = Chart.Plot.AddSignalXYConst(times, prices); 
plot.MarkerColor = Color.Red;
plot.Color = Color.White;

изображение


var plot = Chart.Plot.AddSignalXYConst(times, prices); 
plot.Color = Color.White;
plot.MarkerColor = Color.Red;

изображение

I tried to set the color for other properties, the behavior is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions