我有一个不断更新图形的C ++程序(添加/删除边和顶点)。是否可以使用我的C ++程序中的gnuplot(using arrow command)绘制被操纵的图形,并在每次更新图形时更新图形?这是一种动画......
答案 0 :(得分: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