Having data as:
38 52.26
41 46.34
42 49.49
Using smooth
lines; can I include the points on the graph line without plotting it twice?
Now I use:
plot "foo.dat" using ($0):2 smooth csplines title "foo", \
'' using ($0):2 with points title ""
Extended simplified data set:
38 52.26
39 46.34
42 57.29
43 60.41
44 53.57
45 51.49
46 48.24
49 58.50
50 56.85
51 55.56
52 62.81
54 51.76
55 46.94
56 46.35
57 52.76
59 49.49
62 51.78
63 48.24
65 54.46
66 50.00
with linespoints
, but I'm not sure if that would do what you want. (I'd need a full datafile to experiment with it). Is there anything wrong with the extra line of code? In other words, do you want your plot to look differently? If yes, what would you want to change about it? We might be able to work with that if you give more detail about what you're looking for.with linespoints
is not what I want as that set points at given point interval - and not at "data points". It is nothing wrong with "that extra line" but wondered if there was a cleaner/more correct way to do it.'' using ($0):2 with points notitle
instead oftitle ""
for the second plot.)notile
was good -title ""
looks more as a hack and is ambiguous in code.