How to make sure my plots share same axis while using multiplot in gnuplot?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 02:47:11

问题


I use the following script to plot a matrix file file.dat and two points on the same plot.

The problem is that my x and y axis do not overlap for the two different plots.

set multiplot
set pm3d map
splot 'file.dat' matrix
unset pm3d
plot '-' w p
> 20, 10
> 30, 40
> e
unset multiplot

回答1:


Try nonuniform matrix instead of splot and pm3d map:

set multiplot
set size 1,1
unset colorbox
plot[0:3][0:2] '-' nonuniform matrix with image
12 0 1 2 3
0 5 4 8 9
1 6 4 7 8
2 5 6 2 4
e
e
set size 1,1
plot[0:3][0:2] '-' w p ps 5 lw 4 notitle
2 1.2
2.5 1.2
2.5 1.5
e
unset multiplot



来源:https://stackoverflow.com/questions/36865462/how-to-make-sure-my-plots-share-same-axis-while-using-multiplot-in-gnuplot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!