954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Predefined Graph function........

i am working on my project which is on regeression of lines .
well i have been successful in fitting a straight line to the given set of coordinates . since i have come so far after a lot of striving , i have been a bit exhausted on writing a graphic function of plotting the co - ordinates and displaying a graph.

Well is there any function or header file which will directly plot a graph if i provide a given set of co - ordinates.

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 

Short answer - no.
Longer answer - depends on which OS/Compiler you have and what libraries you have installed (or willing to install)

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

well i am willing to install any libraries.. n working on minGW compiler.
n working on windows , its kinda not possible to change the platform .. but in the worst case that can be considered.....

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 
Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

well i just need a function which can plot a graph in x/y axis thats it.

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 

Would 80x25 on a terminal be good enough resolution?

Graphics of any kind come with baggage. There is no "Just draw a line".

Actually, that's not entirely true.
If you want to use your browser to do some of the work, then outputting a simple SVG file could do the job.
http://www.w3.org/TR/SVGTiny12/paths.html

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

dude i think you havent undestood me .......
i just need some simple fuction which will plot the graph for me when i inout the co ordinates, thats all . there is no complication in it.

i got a link and copied those libraries , but its giving me an error.

the underneath is the link from where i copied libraries
http://codecutter.org/tools/koolplot/

the error i got is something like this

graph.cpp||undefined reference to `Plotdata::Plotdata(double, double)'|
graph.cpp||undefined reference to `plot(Plotdata const&, Plotdata const&)'|
graph.cpp||undefined reference to `COLOR'|
graph.cpp||undefined reference to `COLOR'|
graph.cpp||undefined reference to `COLOR'|
graph.cpp||undefined reference to `COLOR'|
graph.cpp||undefined reference to `COLOR'|
graph.cpp||more undefined references to `COLOR' follow|
||=== Build finished: 8 errors, 0 warnings ===|
rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 

Did you know that before my last reply?
Cos playing guessing games sucks.

> gcc.exe -mwindows -o aplot.exe aplot.o -lkoolplot
> -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 -lstdc++ -lsupc++
What you have are linker error messages.
My guess is you need
-lkoolplot
somewhere.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You