Re: Gnuplot is interpolating between missing data

Norwid Behrnd via gnuplot-info <[email protected]> Tue, 31 Aug 2021 05:44:47 +0000
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <20210831054447.063e8dc4@carnot2>
Dave,

based on an entry on stack overflow[1], an input like the following
might fit your needs.  Save it as file ```test.dat```, then run
```gnuplot test.dat``` (in my case, it is gnuplot 5.4.1 which was
good enough, the plot includes the tick for x = 3 but discontinues
the line).

The MWE:
```
set style data lines
set terminal png
set output "see.png"
i=2
plot '-' using (column(i)):xticlabels(1) title columnheader(i)
A B
1 10
2 20
3 ?
4 40
5 50
e
```

credit: [1]
https://stackoverflow.com/questions/22738353/gnuplot-skip-missing-data-points-and-xticlabels 

Norwid

_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info