Thread: plotting/graphing

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    plotting/graphing

    I want to plot data points and graph functions. Nothing to advanced, just a basic 2D plot.

    What library can I use to do this?

    I am very new to C, any advice on how to plot/graph will be of great help!

    Thanks

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Quote Originally Posted by sklzacharia
    I am very new to C, any advice on how to plot/graph will be of great help!
    I'm not new to C, but I generally use Excel.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    What OS?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  4. #4
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    If u working on linux, U can use GNU- PLOT
    In the middle of difficulty, lies opportunity

  5. #5
    and Nothing Else Matters
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    117
    will gotoxy() work??

  6. #6
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    gotoxy() will only take the cursor to the co-ordinates u specify.. To actually draw the lines , u need to use the line().. if u want to draw the lines for all the points that u have, its pretty tedious.. U can use pgplot as well, I think
    In the middle of difficulty, lies opportunity

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    2
    I like the excel idea.

    Can I auto output my data into an excel file that will bring up a graph?


    To answer previous question I am on OS X, havent been able to get pgplot of gnuplot to work properly.
    I can run excel through OpenOffice
    Last edited by sklzacharia; 08-03-2006 at 07:26 AM.

  8. #8
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    OS X? Mac? I don't know even a bit about it.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed