What would be t开发者_高级运维he best approach to plot a chart, using C (on Linux), based on data input from a CSV file?
Thank you!
Have a look at the mighty gnuplot
it seems to have a C API
And examples: http://ndevilla.free.fr/gnuplot/gnuplot_i/index.html
To make a graph in C you'll have to use a graphics library (unless you mean an ascii-art graph).
Two such libraries are:
- The excellent Allegro gaming library (see examples here)
- The SDL library
精彩评论