Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ZedGraph

ZedGraph

Scheduled Pinned Locked Moved C#
questiongraphicsdata-structureshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    james_dixon_2008
    wrote on last edited by
    #1

    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

    P Z 2 Replies Last reply
    0
    • J james_dixon_2008

      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

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      :confused:

      "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

      1 Reply Last reply
      0
      • J james_dixon_2008

        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

        Z Offline
        Z Offline
        zafersavas
        wrote on last edited by
        #3

        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 (like Thread.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 }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups