问题
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