Can anyone help me learn how to draw a Graph in C or C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Asad
    New Member
    • Oct 2006
    • 9

    Can anyone help me learn how to draw a Graph in C or C++

    Hi,
    I have a data, its frequency of a particular events at different times.
    Like,
    at time 0 - Number of events 2
    at time 1 - Number of events 3
    at time 2 - Number of events 0
    at time 3 - Number of events 100
    so on ..,

    I have to take time on one axis and these numbers on the other. But could any one tell me how to plot all these values so as to get a curve shape,(probably the numbers i have will lead to a curve) in C or C++

    Thanks,

    -Asad.
  • iknc4miles
    New Member
    • Oct 2006
    • 32

    #2
    Do you know any graphical languages such as Direct3D or OpenGL?

    - Miles

    Comment

    • Asad
      New Member
      • Oct 2006
      • 9

      #3
      Well,
      so far I dont know Direct3D or OpenGL.

      Comment

      • apusateri
        New Member
        • Oct 2006
        • 27

        #4
        Originally posted by Asad
        Well,
        so far I dont know Direct3D or OpenGL.
        C++ in and of itself won't draw graphs, you'd need a graphics library to do something like that. Might want to take a little time looking into Direct3D, OpenGL, or even SDL and seeing how those libraries work.

        Once you've got some basic knowledge on that drawing graphs should be a piece of cake...somewhat :)

        Comment

        Working...