使用pointinterval减少点数 [英] Using pointinterval to reduce the number of points
本文介绍了使用pointinterval减少点数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用pointinterval
,可以告诉Gnuplot何时在线上插入点.现在,通过将其设置为-1,该行不会越过该点.例如
With pointinterval
, it is possible to tell Gnuplot when to insert the point on the line. Now, by setting that to -1, the line doesn't go though the point. For example
pi -1
----<>----<>----<>----<>----<>----<>----<>----<>----<>----
pi 2
----<->----------<->----------<->----------<->----------<->----
如您所见,使用-1以外的值会将线插入点内.
As you can see, using values other than -1 will insert the line inside the point.
我想使用正数pi
来减少可见点的数量,同时我希望看到线没有穿过该点.像这样
I want to use positive pi
in order to reduce the number of visible points and at the same time I want to see that the line doesn't go through the point. Something like this
----<>----------<>----------<>----------<>----------<>----
那怎么可能?
推荐答案
只需使用较大的负数,例如pi -5
:
Just use a larger, negative number like pi -5
:
set xrange [0:1]
plot '+' using 1:($1**2) pi -5 pt 6 lw 2 ps 1.5 w lp t 'pi -5', \
'+' using 1:($1**2 + 0.1) pi 5 pt 6 lw 2 ps 1.5 w lp t 'pi 5'
这篇关于使用pointinterval减少点数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文