0

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.

and i find this:

http://classes.bus.oregonstate.edu/ba371/lu/VBlabs/VBgnuplot.html

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.

1 Answers1

0

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")

How to pass command line argument to gnuplot?

http://msdn.microsoft.com/en-us/library/xe736fyk(v=vs.90).aspx

Good luck.

Community
  • 1
  • 1
jcwrequests
  • 1,132
  • 1
  • 7
  • 13
  • i have something to ask u. how can i adapt code in this link http://classes.bus.oregonstate.edu/ba371/lu/VBlabs/VBgnuplot.html to use with window form – Pawaneeya Wipawin Oct 21 '13 at 04:15
  • Can u guild line me for the next step? i cannot do it. I have already had a text file which is the Gnuplot's code for plotting 3D graph. From this link : http://msdn.microsoft.com/en-us/library/xe736fyk(v=vs.90).aspx I can call the Gnuplot but i dont want to do like this. I want the Gnuplot autometic plot graph from the file text. Then, show the graph on window from. Can u give me an example code. I cannot find its and I'm not proficient in programming for write this code by myself. i'm waiting for ur kind. – Pawaneeya Wipawin Oct 22 '13 at 02:39