在gnuplot中使用multiplot时,如何确保我的图共享相同的轴? [英] How to make sure my plots share same axis while using multiplot in gnuplot?

查看:202
本文介绍了在gnuplot中使用multiplot时,如何确保我的图共享相同的轴?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下脚本绘制矩阵文件file.dat和同一图上的两个点.

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

问题是我的x和y轴在两个不同的图上不重叠.

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

推荐答案

尝试使用nonuniform matrix代替splotpm3d 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

这篇关于在gnuplot中使用multiplot时,如何确保我的图共享相同的轴?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆