Menu

#141 Curve colors all the same

open
nobody
General (54)
5
2012-09-19
2012-04-04
ATJA
No

I'm trying to plot a number of curves in one pane, using a loop. When I do this, I add the curves by the following line of code:

LineItem^ curve = trueDriftPane->AddCurve("curveName",curveList,*plotColors[index],SymbolType::Diamond);

where plotColors is an array<Color^>^ with a series of colors, such that each plot gets its own color.
When I do this, the legend shows a different color for each curve, but the curves on the plot itself are all red.

How can I give each curve that is created in a loop its own color in a graph?

Thanks for any help!

Discussion


Log in to post a comment.