Predefined Graph function........

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2009
Posts: 210
Reputation: rahul8590 is on a distinguished road 
Solved Threads: 11
rahul8590's Avatar
rahul8590 rahul8590 is offline Offline
Posting Whiz in Training

Predefined Graph function........

 
0
  #1
May 3rd, 2009
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.
<?php
$data = $_POST['data'];
if(empty($data)) {
echo "byte me" ; }
?>
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

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

 
0
  #2
May 3rd, 2009
Short answer - no.
Longer answer - depends on which OS/Compiler you have and what libraries you have installed (or willing to install)
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 210
Reputation: rahul8590 is on a distinguished road 
Solved Threads: 11
rahul8590's Avatar
rahul8590 rahul8590 is offline Offline
Posting Whiz in Training

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

 
0
  #3
May 3rd, 2009
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.....
<?php
$data = $_POST['data'];
if(empty($data)) {
echo "byte me" ; }
?>
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

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

 
0
  #4
May 3rd, 2009
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 210
Reputation: rahul8590 is on a distinguished road 
Solved Threads: 11
rahul8590's Avatar
rahul8590 rahul8590 is offline Offline
Posting Whiz in Training

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

 
0
  #5
May 3rd, 2009
well i just need a function which can plot a graph in x/y axis thats it.
<?php
$data = $_POST['data'];
if(empty($data)) {
echo "byte me" ; }
?>
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

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

 
0
  #6
May 3rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 210
Reputation: rahul8590 is on a distinguished road 
Solved Threads: 11
rahul8590's Avatar
rahul8590 rahul8590 is offline Offline
Posting Whiz in Training

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

 
1
  #7
May 3rd, 2009
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

  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 ===|
<?php
$data = $_POST['data'];
if(empty($data)) {
echo "byte me" ; }
?>
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

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

 
0
  #8
May 3rd, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC