1
1-如何旋轉我的圖形,使y成爲新的x軸,反之亦然?在gnuplot中旋轉一個圖形
情節由該腳本在終端中創建的最大值:
set palette grey
plot 'color_map.dat' matrix with image
1-如何旋轉我的圖形,使y成爲新的x軸,反之亦然?在gnuplot中旋轉一個圖形
情節由該腳本在終端中創建的最大值:
set palette grey
plot 'color_map.dat' matrix with image
可以交換x和y軸與using
修改器。 (就像普通的地塊,除了爲矩陣數據,列1和2是不是在你的數據文件,但推斷。)
plot 'color_map.dat' matrix using 2:1:3 with image
如果你真的只是想改變在y的最大值(新的x)軸,您將使用set xrange[:100]
。但是,這聽起來像你可能真的要縮放的數據本身,在這種情況下,你可以使用
plot 'color_map.dat' matrix using ($2/60.*100):1:3 with image
嘗試help plot matrix
瞭解更多詳情。
您在繪圖之前是否嘗試過使用矩陣的轉置?至於軸縮放,請查看文檔:http://gnuplot.sourceforge.net/docs_4.2/node294.html – 7VoltCrayon