如何调用gnuplot的在vb.net [英] how to call gnuplot in vb.net
问题描述
我要创建程序可以从文本文件中绘制3D图形。 现在,我可以写code的情节3D图形。 但我不知道打电话的gnuplot在vb.net。 我的计划是写在窗口的应用程序。 所以,我试图寻找code。在互联网上。
I have to create program can plot 3D graph from text file. Now, I can write the code for plot 3D graph. but i have no idea to call gnuplot in vb.net. My program is written on window apps. So, i try to search code in the Internet.
我觉得这样的:
http://classes.bus.oregonstate.edu/ba371/鲁/ VBlabs / VBgnuplot.html
我已经试过这种code。通过控制台,但它不工作。 虽然,它可以工作。我无法解决它与窗口的应用程序使用。 因为我是新的vb.net。
I have already tried this code by console but it doesn't work. Although, It can work. I cannot resolve it to use with window apps. because I'm new in vb.net.
我要在一周内写这个程序完成。 任何人都可以帮我吗?请。 先谢谢了。
I have to write this program finish within 1 week. Anyone can help me? pls. Thanks in advance.
推荐答案
在VB中,我们可以使用命令行功能。我下面的链接立足这一点。对于报价我的转义序列可能需要进行调整,但这应该工作。我还包括一个连接到外壳功能,还具有使用过程一个code例子很好。
In vb we can use the Shell Function. I am basing this on the below link. My escape sequence for the quotes may need to be adjusted but this should work. I have also included a link to the shell function which also has a code example using Process a well.
SHELL("gnuplot -e """filename='foo.data'""" foo.plg")
http://msdn.microsoft.com /en-us/library/xe736fyk(v=vs.90).aspx
祝你好运。
这篇关于如何调用gnuplot的在vb.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!