开发者

drawing graphs in ubuntu

开发者 https://www.devze.com 2023-03-16 12:53 出处:网络
I have a C code that collects data and places them in a 2-D array. I would like to plot this data on an x-y 开发者_C百科graph (mathematics) automatically i.e. pass the data as parameters in a command

I have a C code that collects data and places them in a 2-D array. I would like to plot this data on an x-y 开发者_C百科graph (mathematics) automatically i.e. pass the data as parameters in a command line and get a graph

Are there any suggestions for how to do so?


gnuplot is a good one to look at assume you mean x-y charts, if you want actual graphs then look at dot


gnuplot will do what you need. If you want to process the data before, you might want to try octave, which aims to be a matlab equivalen (still uses gnuplot as a frontend for graphing).

If you want even more control, you could write a script in python and use matplotlib.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号