简体   繁体   English

在 ubuntu 中绘制图形

[英]drawing graphs in ubuntu

I have a C code that collects data and places them in a 2-D array.我有一个 C 代码,它收集数据并将它们放在二维数组中。 I would like to plot this data on an xy graph (mathematics) automatically ie pass the data as parameters in a command line and get a graph我想 plot 自动将这些数据放在 xy 图(数学)上,即在命令行中将数据作为参数传递并获取图表

Are there any suggestions for how to do so?有什么建议吗?

gnuplot is a good one to look at assume you mean xy charts, if you want actual graphs then look at dot gnuplot 是一个不错的选择,假设您的意思是 xy 图表,如果您想要实际的图表,请查看 dot

gnuplot will do what you need. gnuplot会做你需要的。 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).如果您想以前处理数据,您可能想尝试octave ,它旨在成为 matlab 等效项(仍然使用 gnuplot 作为绘图的前端)。

If you want even more control, you could write a script in python and use matplotlib .如果您想要更多控制,您可以在 python 中编写一个脚本并使用matplotlib

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM