0

我有一个 C++ 程序,可以不断更新图形(添加/删除边和顶点)。是否可以使用我的 C++ 程序中的 gnuplot(使用箭头命令)绘制操纵图,并在每次更新图时更新图?这是一种动画...

4

1 回答 1

0

您可以尝试使用管道命令,也应该根据此在 Windows 上工作:http: //pleasemakeanote.blogspot.dk/2009/05/how-to-call-gnuplot-from-c-using-pipes.html

一个例子(这个使用 POSIX 和鼠标,所以你可能想改用上面的例子): http ://www.gnuplot.info/files/gpReadMouseTest.c

作为替代方案,请考虑使用 MathGL:http ://mathgl.sourceforge.net/doc_en/mathgl_en.html

于 2012-06-26T22:22:09.390 回答