我打算繪製多列數據文件。繪製第一列和第i列的xy圖。所以基於手冊的作品的命令。哪個gnuplot版本開始有這樣的功能?我的機器安裝版本4.2,但無法工作。對於columnheader()
相同的問題我想確保它是我的代碼的問題或版本的問題。gnuplot:for和columnheader命令
2
A
回答
6
版本4.2已具有columnheader
功能。
考慮其中包含
first second third fourth
1 2 3 4
2 3 4 5
3 4 5 6
在gnuplot的4.2數據文件data.txt
可以使用例如
set key autotitle columnheader
set style data lines
plot 'data.txt' using 1:2, '' using 1:3, '' using 1:4
從版本4.4可以使用迭代plot
命令裏面:
set key autotitle columnheader
set style data lines
plot for [i=2:4] 'data.txt' using 1:i
除了使用set key autotitle columnheader
的你也可以用title columnheader
或title columnheader(i+1)
如果標題欄沒有給出列匹配using
聲明。這至少從4.2開始起作用。
+0
好的,謝謝。我會查一下。 – 2014-10-20 01:13:38
相關問題
- 1. Row和ColumnHeader,CellMouseClick事件vb.net
- 2. ItemsControl和命令
- 3. 命令行&和&&
- 4. Silverlight 4 Datagrid ColumnHeader Drag
- 5. DataGridView select RowHeader或ColumnHeader
- 6. Java和exec命令 - 管多個命令
- 7. Symfony2的命令,在命令行和incron
- 8. UNIX tty命令和文件命令?
- 9. ADODB命令和複雜的SQL命令?
- 10. Python:ArgParse與主命令和子命令
- 11. 從VBS運行命令行和命令
- 12. ]命令和命令> [忽略輸出]
- 13. 用於命令和命令選項
- 14. 嵌套命令和管道命令
- 15. 委託命令和路由命令
- 16. 命令行命令命令
- 17. 命令,CommandHandler和CommandInvoker
- 18. POPEN和python命令
- 19. mysql命令和groupby
- 20. dup和dup2命令
- 21. grep和sed命令
- 22. SHR和SAR命令
- 23. Mapcar和assoc命令
- 24. iMacros和Back命令?
- 25. 命令和菜單
- 26. Dockerfile和dpkg命令
- 27. Vapply命令和mvtnorm
- 28. Isabelle2016和命令行
- 29. Libudev和AT命令
- 30. Nice和Renice命令
從4.4開始,我認爲'plot for ...'是可用的,並且自4.6開始可以使用更強大的'{...}'。 – Miguel 2014-10-19 08:55:28
@Miguel我不一定會說'do for'更強大,因爲在這種情況下你必須使用'plot for';} – Christoph 2014-10-19 09:08:17