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
----<->----------<->----------<->----------<->----------<->----
As you can see, using values other than -1 will insert the line inside the point.
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
----<>----------<>----------<>----------<>----------<>----
How that is possible?
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With