PDA

View Full Version : scientific drawing library in c



miak
July 12th, 2010, 09:55 PM
Hi,

I am trying to write a program to draw and display some data, e.g. a set of points over some period of time(something that easily can be done in python using matplotlib).

What library should I use to draw and is it possible to show the resulting drawing in the gtk gui written in c. my guess would be to draw with the program and get a pixbuf out of it and the rest can be done by gtk.

Any ideas?????
Thanks,
miak

dwhitney67
July 13th, 2010, 01:12 AM
A while back (last year?), one of the forum members posted the code for a graphing application which is based on SDL. I found it somewhat interesting, and made a copy for myself. I've included a tar-ball with the code that you can peruse at your leisure.

Read the INSTALL and then the README text files for instructions on how to build/run the application.