943,722 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 869
  • C++ RSS
May 3rd, 2009
0

Predefined Graph function........

Expand Post »
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.
Reputation Points: 92
Solved Threads: 20
Posting Whiz
rahul8590 is offline Offline
351 posts
since Mar 2009
May 3rd, 2009
0

Re: Predefined Graph function........

Short answer - no.
Longer answer - depends on which OS/Compiler you have and what libraries you have installed (or willing to install)
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
May 3rd, 2009
0

Re: Predefined Graph function........

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.....
Reputation Points: 92
Solved Threads: 20
Posting Whiz
rahul8590 is offline Offline
351 posts
since Mar 2009
May 3rd, 2009
0

Re: Predefined Graph function........

Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
May 3rd, 2009
0

Re: Predefined Graph function........

well i just need a function which can plot a graph in x/y axis thats it.
Reputation Points: 92
Solved Threads: 20
Posting Whiz
rahul8590 is offline Offline
351 posts
since Mar 2009
May 3rd, 2009
0

Re: Predefined Graph function........

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
Last edited by Salem; May 3rd, 2009 at 4:52 pm. Reason: SVG
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
May 3rd, 2009
1

Re: Predefined Graph function........

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

C++ Syntax (Toggle Plain Text)
  1.  
  2. graph.cpp||undefined reference to `Plotdata::Plotdata(double, double)'|
  3. graph.cpp||undefined reference to `plot(Plotdata const&, Plotdata const&)'|
  4. graph.cpp||undefined reference to `COLOR'|
  5. graph.cpp||undefined reference to `COLOR'|
  6. graph.cpp||undefined reference to `COLOR'|
  7. graph.cpp||undefined reference to `COLOR'|
  8. graph.cpp||undefined reference to `COLOR'|
  9. graph.cpp||more undefined references to `COLOR' follow|
  10. ||=== Build finished: 8 errors, 0 warnings ===|
Reputation Points: 92
Solved Threads: 20
Posting Whiz
rahul8590 is offline Offline
351 posts
since Mar 2009
May 3rd, 2009
0

Re: Predefined Graph function........

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.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: compiling allegro
Next Thread in C++ Forum Timeline: question about programing pratice with a large array





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC