Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.MediumSlateBlu e), 3), "FirstPlot"));
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.HotPink), 3), "SecondPlot"));
This appears to work fine, the lines being drawn are the correct color.
Later in my code I add:
Plots[0].Pen.Color = Color.Gray;
Plots[1].Pen.Color = Color.Gray;
However, the colors don't change. Is what I'm doing incorrect?
Thanks in advance
Comment