2

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

graph

laoleo
  • 21
  • 1

1 Answers1

2

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.

bretddog
  • 5,411
  • 11
  • 63
  • 111