ZedGraph
-
Hi I have used ZedGraph to draw sine wave . Now problem is when i run the .exe file..I get output sinewave already drawn over the graph...Whereas i want when i run the exe...It should start drawing the sine wave. So how can i achieve this..Any hints ? Thanks James
-
Hi I have used ZedGraph to draw sine wave . Now problem is when i run the .exe file..I get output sinewave already drawn over the graph...Whereas i want when i run the exe...It should start drawing the sine wave. So how can i achieve this..Any hints ? Thanks James
:confused:
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Hi I have used ZedGraph to draw sine wave . Now problem is when i run the .exe file..I get output sinewave already drawn over the graph...Whereas i want when i run the exe...It should start drawing the sine wave. So how can i achieve this..Any hints ? Thanks James
I think you mean you want to see the drawing slowly. When calculating the sinus values you should have a small delay in the
for
loop (likeThread.Sleep(50);
). So your code should seem something like;for (...) { y= Math.Sin(x); // calculate sine value ppArray.Add(x,y); // Add it to the pointpairlist of the graph zedGraph1.AxisChange(); // Recalculate the Axis Scale Ranges zedGraph1.Invalidate(); // invalidate Thread.Sleep(50); // Wait for some time before the next step }