Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Hide the y=0 axis

Help
Anonymous
2011-06-22
2012-09-19

  • Anonymous
    2011-06-22

    Hi

    I use Zedgraph to display a bunch of curves with different Y scales. I've
    successfully added Y2Axis for each trend. For each trend I get 'n straight
    horizontal line across the GraphPane at y=0. How can I hide this axis?

     
  • T.C. Phelps
    T.C. Phelps
    2012-09-13

    Old post, but for anyone who comes here in the future --

    Setting the IsZeroLine property of the YAxis.MajorGrid object hides the
    horizontal line.

    The line of code I use in my (C#) application:

    zedGraphControl1.MasterPane.PaneList.YAxis.MajorGrid.IsZeroLine = false; //
    Hide the y=0 line