gnuplot:绘图图像,具有缩放和偏移的抽动值(默认情况下,这些只是计数图像像素)



我成功地使用此答案中提供的代码绘制图像文件

我得到了诸如x = 1,2,3,...,widthy = 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,还有许多其他选项可以控制用于二进制数据的坐标: dxdy等:

reset
set autoscale fix
plot 'BL.jpg' binary filetype=jpg center=(0,0) dx=5 dy=0.2 with rgbimage notitle

相关内容

最新更新