1

Can we plot both points with smooth csplines in one legend? If we plot them separately two legends generates with separate point and line.

I expect both point and smooth line in one legend as in case of linepoints

francescalus
  • 30,576
  • 16
  • 61
  • 96

1 Answers1

2

If you have a current gnuplot (version 5.4), use keyentry to generate a custom entry for the plot legend.

plot FOO with points lt 2 notitle, \
     FOO smooth csplines with lines lt 2 notitle, \
     keyentry with linespoints lt 2 title "points + lines"

enter image description here

Ethan
  • 13,715
  • 2
  • 12
  • 21