Reputation: 21
i am trying to create a graph with zedgraph. I have already changed the color of everything. But I can't change the color of the black lines.They should be also white. Could someone help me? there have to be a solution
Best regards Laoleo
Upvotes: 2
Views: 768
Reputation: 5529
With GraphPane you can access properties YAxis, Y2Axis, YAxisList and Y2AxisList. Colors for the axis may be changed as follows :
var col = Color.Blue;
foreach (var y in myGraphPane.Y2AxisList)
{
y.Color = col;
y.Scale.FontSpec.FontColor = col;
y.MajorTic.Color = col;
y.MinorTic.Color = col;
}
And similar for the x-axis'.
See also Zedgraph documentation.
Upvotes: 2