LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2009, 03:47 PM   #1
amolgupta
Member
 
Registered: Feb 2005
Location: agra,india
Distribution: FC2
Posts: 158

Rep: Reputation: 30
how to draw graph in c


i am solving some graph theory(to be precise it's euclidean geometric graph theory problem -rectilinear steiner tree)and want to visualize the result.
how can i do that.
 
Old 03-24-2009, 07:01 PM   #2
khodeir
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 243

Rep: Reputation: 33
1-it is easily to try matlab so it will be the best solution
2-A better solution : use cairo (cairographics.org)
3-
Quote:
satan@ubuntu:~$ aptitude search plot
...
p xplot - A simple x-y column data plotter for X.
if you want to do draw graph using C here
 
Old 03-24-2009, 07:36 PM   #3
amolgupta
Member
 
Registered: Feb 2005
Location: agra,india
Distribution: FC2
Posts: 158

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by khodeir View Post
1-it is easily to try matlab so it will be the best solution
2-A better solution : use cairo (cairographics.org)
3-
if you want to do draw graph using C here
the word graph has been misunderstood i am talking about the graph with nodes and edges.
 
Old 03-24-2009, 07:37 PM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
Look into graphviz
 
Old 03-25-2009, 09:37 AM   #5
tadeas
Member
 
Registered: Jul 2008
Location: Prague
Distribution: Opensuse
Posts: 40

Rep: Reputation: 5
You might want to check gnuplot. It can do a lot of useful things like interpolation etc. There's also a library to control it available for C or C++...
 
Old 03-25-2009, 01:14 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
There is gnuplot. You also could use at or gtk with cairo.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I draw an image with Qt? Ephracis Programming 3 06-27-2009 07:10 AM
Can't draw MRTG graph for MAX TNT RAS kmkhan Linux - General 0 09-24-2007 05:21 AM
mc will not draw itself properly in X? lugoteehalt Linux - Software 4 07-24-2007 10:29 AM
Help me to draw graphics with C#!!!!!!!!!!!!!! JohhnyAlpha8 Linux - Newbie 2 12-15-2006 01:48 PM
Draw Circle Gerardoj Programming 11 08-24-2003 06:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration