Skip to content

Changing some properties like color, lineStyle after creating plottable with constructor, has no effect. #173

@Minu476

Description

@Minu476
var hb = formsPlot1.plt.PlotScatter(
	Xs[brick].Values.ToArray(), 
	highBands[brick][c].Values.ToArray(), 
	color: Color.Green, 
	lineWidth: 2,
	markerShape: ScottPlot.MarkerShape.none);

hb.label = "Brick_" + brick + "_HB_" + c;
hb.lineStyle = ScottPlot.LineStyle.Dash;
hb.color = Color.Blue;

if (myCurrentTemplate.Plottables.ContainsKey(hb.label))
	hb.visible = myCurrentTemplate.Plottables[hb.label].visible;
else 
	hb.visible = false;

in above code snippet lablel and visibility will get modified but color and lineStyle will remain unchanged.

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