how to plot graph on c

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arda
    New Member
    • Oct 2006
    • 6

    how to plot graph on c

    i have a program and this program has output values and i wanna draw a 2D graph for these outputs. How can i achieve this?
  • arne
    Recognized Expert Contributor
    • Oct 2006
    • 315

    #2
    Originally posted by arda
    i have a program and this program has output values and i wanna draw a 2D graph for these outputs. How can i achieve this?
    Have a look at gnuplot: http://www.gnuplot.inf o/
    It will be very helpful :-)

    Comment

    • arda
      New Member
      • Oct 2006
      • 6

      #3
      thx for ur help firstly i have downloaded it before but i dont understand how i will use it . should i make a output from my own program ? and then use this file with gnuplot? has gnuplot a exe file or how is it working?

      Comment

      • arne
        Recognized Expert Contributor
        • Oct 2006
        • 315

        #4
        Originally posted by arda
        thx for ur help firstly i have downloaded it before but i dont understand how i will use it . should i make a output from my own program ? and then use this file with gnuplot? has gnuplot a exe file or how is it working?
        Yes, write the output from your program to a file, which you then read into gnuplot. Try the "plot" command:

        gnuplot> plot "my_data_file.d at"

        Yes, gnuplot is a stand-alone program, not a library or something, if that's what you mean.

        I never used gnuplot under Windows, though ...

        Comment

        Working...