2020年6月8日 星期一

[Cygwin] gnuplot

如何使用gnuplot?

$ gnuplot.exe











如何畫圖?

gnuplot> plot 1





















如何加上標題?

gnuplot> set title "Demo - plot sin(x)" 

gnuplot> plot sin(x)
























補充:

Cygwin直接執行gnuplot無法正常執行, 需要先安裝xinit/xterm/xhost package. 




















然後啟動X Server.

$ startxwin















在狀態列可以看到出現2個圖示, 

左邊為X Server, 右邊為X Application Menu
















滑鼠移動到X Application Menu上方,按滑鼠右鍵出現選單,選擇System Tools -> Cygwin Terminal


開啟一個新的視窗 Cygwin Terminal

輸入gnuplot之後就可正常使用gnuplot繪圖


0 個意見:

張貼留言

訂閱 張貼留言 [Atom]

<< 首頁