Hello all, I am new to vb.net & zedgraph so please be gentle...
I have the following very simplified code to add a number of zedgraph curves based on an array, but it appears to be clearing the curve on each 'for' loop?
If I comment out the zg1ppl.clear() it will generate a curve but then obviously it will accumulate all the PointPairs from all curves.
Any idea why this is happening?
(code below is muchly simplified for clarity)

Correct, as I said it is very much simplified, in the real code they are all different - in this case it should produce 4 curves all exactly the same, but it produces none. I will edit it to produce different curves for U.

Thanks Prasad, I looked up everything I could find about Zedgraph before I posted.
The change here that has fixed the issue is shifting the 'zg1ppl = new pointpairlist' down instead of using the pointpairlist clear() method.
What is the difference? Why would the other way not work?
For interest the curve formula I put in was just to put something there, the curve pointpair generation in the real code is quite complex

zgp1ppl is a list is passed by reference to the addCurve method. I really don't know what's done internally in ZedGraph control to keep the copy of this point list. But if it's going to just hold the reference to it then calling .clear() will remove all points and the control may not find any information to render. Again this is a pure guess based on my past experience working with collections. I am really glad to know that your issue is fixed.