Search code examples
.netzedgraph

zedgraph axis label font size


I'm using zedgraph to display a graph, but it need to be a small graph. my problem is the font of the axis labels and axis name is so small that it cant be read.

I'll appreciate any help.

Regards, Amichai


Solution

  • Here's a simple code:

    private void Form1_Resize(object sender, EventArgs e)
        {
            GraphPane myPane = zedGraphControl1.GraphPane;
    
            myPane.YAxis.Title.FontSpec.Size = 10.0f * (this.Size.Width / 100);
    
            zedGraphControl1.Refresh();
        }
    

    enter image description here