Re: [問題] 製圖

看板Linux作者 (.)時間16年前 (2010/01/07 15:24), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串6/6 (看更多)
※ 引述《kzgiant (嘟嘟)》之銘言: : 有很大量的資料要畫成圖表 : 用openoffice貼好,再做成表格會累死。 : 輸入資料 : date.txt : 0 0 0 0 0 0 : 0 1 1 1 1 0 : 0 1 1 2 1 0 : 0 1 2 2 2 1 : 0 1 1 1 1 1 : 0 0 0 0 0 0 : 有程式 可以直接吃整個份資料 : 畫出3D的曲面圖嗎? : gnuplot能畫曲面圖嗎? : 謝謝 gnuplot要畫成3D的曲面圖... 不知道你指的是不是這個像是這樣的: http://gnuplot.sourceforge.net/demo_4.2/surface1.html (不過上述的Demo都是用公式去畫出來的。) 如果是這種3D 的surface圖的話。 可以在進入gnuplot之後試試下列的方法: 資料類型為Matrix:(就是上面你給的data.txt) splot 'data.txt' matrix with lines 這個時候你就會看到圖出來了,然而x-axis 和 y-axis卻則無任何意義. 如果要調整x-axis和y-axis的單位的話 set xtics ("100" 0, "200" 1, "300" 2) 在x軸線上的第一個值定為100,第二個值定為200....以此類推 set ytics ("100" 0, "200" 1, "300" 2) 之後再 replot 圖就出來了。 如果覺得這樣畫出來的圖沒有顏色,可以再加個指令 set pm3d replot 這個時候會變得炫一點。 以上的gnuplot細節可以參考這個網站: http://t16web.lanl.gov/Kawano/gnuplot/datafile-e.html#matrix http://t16web.lanl.gov/Kawano/gnuplot/plotpm3d-e.html#6.7OD -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.76.210 ※ 編輯: onionys 來自: 140.113.76.210 (01/07 15:28) ※ 編輯: onionys 來自: 140.113.76.210 (01/07 15:35)

01/07 15:36, , 1F
對了,我是在gnuplot4.2版下面試的。
01/07 15:36, 1F

01/07 17:11, , 2F
matrix應該能批次畫圖了 謝謝
01/07 17:11, 2F
文章代碼(AID): #1BHOn1R_ (Linux)
討論串 (同標題文章)
本文引述了以下文章的的內容:
問題
7
16
完整討論串 (本文為第 6 之 6 篇):
問題
1
2
問題
7
16
文章代碼(AID): #1BHOn1R_ (Linux)