24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 331  |  回复: 0

newscat1993

木虫 (小有名气)

[求助] vb.net调用gnuplot并且load参数文件

用vb.net调用gnuplot这个软件并且能够让它load ‘.\experiment-3\Rjhplot.plt’文件。
在gnuplot中load ‘.\experiment-3\Rjhplot.plt’没有问题,但是如果从vb.net中调用就不能够进行,我可以单独打开gnuplot这个应用程序但是不能够调用任何配置文件,提供代码如下:
CODE:
Dim gnu As New ProcessStartInfo(Application.StartupPath & ".\gnuplot\bin\gnuplot.exe")
With gnu
    gnu.Verb = "load"
    gnu.Arguments = ".\experiment-3\Rjhplot.plt"
    gnu.FileName = ".\experiment-3\Rjhplot.plt"
    gnu.RedirectStandardError = True
    gnu.RedirectStandardOutput = True
    gnu.UseShellExecute = False
    gnu.CreateNoWindow = False
End With
Dim g As Process = Process.Start(gnu)
Dim gOutput As String = g.StandardOutput.ReadToEnd()
Dim gError As String = g.StandardError.ReadToEnd()
g.WaitForExit()
配置文件内容如下:
set key off
  set xlabel "t (min)" offset 0,1 font 'Times,11'
  set ylabel "T (K)" offset 3,0 font 'Times,11'
  set title "T-t Graph for Renald Correction" offset 0,-0.5 font 'Times,14'
  set decimalsign "."
  set format x "%.2f"
  set format y "%.2f"
  set xtics offset 0,0.5   
  plot "Rjhdata.txt" using 1:2 with linespoints linetype -1

[ Last edited by jjdg on 2012-11-11 at 01:09 ]
回复此楼

» 猜你喜欢

Rex.soul
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 newscat1993 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿南科大生物学297分,求调剂推荐 +6 Y-yyusx 2026-04-06 7/350 2026-04-06 22:39 by 52305043001
[考研] 286求调剂 +13 Faune 2026-04-06 13/650 2026-04-06 22:35 by chenzhimin
[考研] 一志愿上海海洋大学083200食品学硕,求调剂,接受其他专业 +9 what张 2026-04-01 10/500 2026-04-06 22:15 by qlm5820
[考研] 320分人工智能调剂 +8 振—TZ 2026-04-03 8/400 2026-04-05 22:33 by 范式思维
[考研] 308求调剂 +3 终不似从前 2026-04-05 3/150 2026-04-05 20:07 by 啵啵啵0119
[考研] 313求调剂 +5 海日海日 2026-04-04 5/250 2026-04-05 15:52 by jndximd
[考研] 341求调剂 +3 学无止境,冲 2026-04-05 3/150 2026-04-05 09:40 by lbsjt
[考研] 313求调剂 +3 海日海日 2026-04-04 3/150 2026-04-05 07:48 by 544594351
[考研] 290求调剂 +7 luoziheng 2026-04-04 7/350 2026-04-04 23:17 by lqwchd
[考研] 413求调剂 +4 柯某某 2026-03-31 4/200 2026-04-04 22:18 by 学员6BFVa3
[考研] 一志愿中国石油大学化学工程323分求调剂 +4 化工专硕323分 2026-04-03 6/300 2026-04-03 22:12 by dongzh2009
[考研] 372分材料与化工(085600)一志愿湖南大学求调剂 +3 蓝笺片 2026-04-03 4/200 2026-04-03 17:58 by Jimmyandyou
[考研] 专硕085601求调剂 +7 suyifei 2026-04-03 8/400 2026-04-03 14:00 by 欣喜777
[考研] 266分,一志愿电气工程,本科材料,求材料专业调剂 +9 哇呼哼呼哼 2026-04-02 9/450 2026-04-03 12:05 by 1753564080
[考研] 330求调剂 +3 白神呜呼呼 2026-04-02 3/150 2026-04-03 10:15 by 蓝云思雨
[考研] 279求调剂 +6 qazplm0852 2026-04-02 6/300 2026-04-03 10:03 by 蓝云思雨
[考研] 材料考研调剂 +10 Gs大王 2026-04-02 10/500 2026-04-03 09:47 by 遗忘消失的灆
[考研] 0710生物学,325求调剂 +3 mkkkkkl 2026-04-01 3/150 2026-04-02 09:48 by Jaylen.
[考研] 279求调剂 +7 莫xiao 2026-04-01 7/350 2026-04-01 22:05 by 客尔美德
[考研] 307分求调剂 +14 (o~o) 2026-03-31 15/750 2026-04-01 20:43 by longlotian
信息提示
请填处理意见