tags:

views:

136

answers:

4

I have a C++ program that generates some data and i need to generate some charts for that data and to plot some functions.
Is there any free library available that can do that and just generate a png/jpeg(format doesn't matter)?
Google charts is not an option as i want to be able to generate charts even when offline.

+2  A: 

In the past there have been various implementations (C, C++, other) of a API for Gnuplot. I don't know what the current status of these api's is.

Maurits Rijk
Alternatively you can just generate the input and definitions files and run gnuplot as a subprocess.
ConcernedOfTunbridgeWells
A: 

Create some temporary input and definition files for gnuplot, and run it as a subprocess.

Will
Or use R instead of gnuplot. Same solution though...
Neg_EV
+3  A: 

Check out http://qwt.sourceforge.net/. It's Qt-based.

rpg
+1  A: 

ChartDirector for C++

Seth