gnuplot:在绘制采样数据时填充整个空间 [英] gnuplot: filling the whole space when plotting sampled data

查看:63
本文介绍了gnuplot:在绘制采样数据时填充整个空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对gnuplot有问题.我已经搜索过,但是找不到正确的解决方案.我正在使用命令splot绘制一些按三列排列的数据,并且x和y中的步骤不同.我得到的情节:

I have a problem with gnuplot. I've searched and I don't find the correct solution. I'm plotting some data arranged in three columns with the command splot, and the steps in x and y are different. The plot I get with:

set view map
splot 'data.dat'  using 1:2:3 with points palette

是:

我希望填充空白,使每个图块的大小适应,避免插值.

and I would like the white space to be filled, making each tile size adapt, avoiding interpolation.

此处给出了一些想法减小绘图中点之间的距离. 我已经尝试过 http://gnuplot.sourceforge.net/demo/heatmaps.html也可以,但是with image似乎不起作用:(

Some ideas are given here Reduce distance between points in splot. I've tryed http://gnuplot.sourceforge.net/demo/heatmaps.html too, but with image doesn't seem to work :(

我应该避免使用pointsize,因为我的网格会不时更改.

I should avoid pointsize as my grid changes from time to time.

推荐答案

您可以尝试

set pm3d map interpolate 1,1 corners2color c1
splot 'data.dat' using 1:($2-5e-5):3

这不使用插值,并且每个多边形的颜色取决于角'c1'的值.您可能需要测试这是否正确,或者是否需要'c2','c3'或'c4'.

This uses no interpolation, and the color of each polygon depends on the value of corner 'c1'. You may need to test if this is the correct one, or if you need 'c2', 'c3', or 'c4'.

这篇关于gnuplot:在绘制采样数据时填充整个空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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