Search code examples
c#antialiasingzedgraph

IsAntiAlias creates border around graph


Here's screenshot of my form with a Zedgraph:

http://eff1fan.com/antialias-false.png

It's how I want it: grey graph on a grey form; no graph or chart borders. The only problem is the aliasing. So I add this:

zedGraphControl1.IsAntiAlias = true;

but then I get this:

http://eff1fan.com/antialias-true.png

How can I get rid of that partial border on the top and left of the graph that now appears?


Solution

  • zedgraphControl1.MasterPane.Border.IsVisible = false;
    

    Should fix it.