我成功地使用此答案中提供的代码绘制图像文件
我得到了诸如x = 1,2,3,...,width
和y = 1,2,3,...,height
之类的抽动,但我想抵消和扩展这些抽动,以获取与拍摄图像的物理域相对应的抽动。因此,我希望我的实际X-TICS是x*xfactor+xoffset
和Y-TICS y*yfactor+yoffset
。这是怎么做的?谢谢。
更新
这是相应的MWE(从这里):
reset
set size ratio 1
set autoscale fix
set key above autotitle columnhead
set palette defined (0 "black", 0.25 "blue", 0.5 "red", 0.75 "yellow", 1 "green")
plot 'BL.jpg' binary filetype=jpg center=(0,0) with rgbimage notitle
除了center
,还有许多其他选项可以控制用于二进制数据的坐标: dx
, dy
等:
reset
set autoscale fix
plot 'BL.jpg' binary filetype=jpg center=(0,0) dx=5 dy=0.2 with rgbimage notitle