2015-09-04 114 views
1

1-如何旋转我的图形,使y成为新的x轴,反之亦然?在gnuplot中旋转一个图形

2-更改y轴的从60至100。 enter image description here

情节由该脚本在终端中创建的最大值:

set palette grey 
plot 'color_map.dat' matrix with image 
+0

您在绘图之前是否尝试过使用矩阵的转置?至于轴缩放,请查看文档:http://gnuplot.sourceforge.net/docs_4.2/node294.html – 7VoltCrayon

回答

1

可以交换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了解更多详情。