Click to See Complete Forum and Search --> : anyone familiar with GNU plotutils package?


femme_one
November 30th, 2005, 05:38 AM
i have a project to do in which i have to output a polynomial equation and a linear regression line on a graph. i looked around for a graphics library for C++ and found GNU plotutils. i downloaded it and tried compiling a sample coding and it failed. The first problem was that it was it was recursively looping to access the header file so i thought adding "#pragma once" in the header file will work, but then when i complied it, it failed again because of 61 errors. mainly because it didnt recognize the functions, nor the parameters. i am not too sure if im posting this in the right forum (( im a newbie here)) so im just pouring my heart out haha.

did i add the package into my visual basic 2003 library wrong?..if so, how do i it?

or is the GNU plotutils package a terrible one and if so, is there a better one that will help output an equation in a graph?

thanks.

Marc G
December 1st, 2005, 03:13 AM
I think the GNU plotutils is a good library. You must have done something wrong. Perhaps you can contact the developers of the package to get more information on how to compile it.

femme_one
December 1st, 2005, 04:46 AM
so plotutils is a package i can use with C++...how do i add the library in there?..also i want to see if i can use the GDI package ((since i see its one of the main ones used for graphics..)) but i am not familiar with it at all..it looks like the environment its created in is Win32?...

Marc G
December 1st, 2005, 05:27 AM
Sorry, my mistake, gnuplot is not a 'true' library, it's a command-line program but can be scripted. In other words, you can call it from your own program.

I think you can simply use the microsoft graph control or browse the codeguru articles, for example: this (http://www.codeguru.com/Cpp/Cpp/cpp_mfc/general/article.php/c8535/) seems a nice control.

femme_one
December 1st, 2005, 12:03 PM
thanks for confirming my suspicions. i have already started to give myself a crash course in GDI by downloading a source code here and manipulating each line of code to see what it does to the graph...that MSDN documentation on GDI helps as well