2

i would like to know if there is some way for customize the point symbols in a plot generated in gnuplot? I want to change the symbols in a plot by numbers, for example, change all '+' symbol by the number '1'.

Every help will be appreciated.

1 Answers1

3

Yes, just use pt '1' as long as you are plotting with points. For example, try:

plot sin(x) with points pt '1'
Dan Sp.
  • 1,419
  • 1
  • 14
  • 21
  • I forget to say that i'm plotting using the pdfcairo terminal. Respect you answer, I tried but is not working, neither by using 'x11' terminal – Handel Sarache Jul 04 '18 at 15:57
  • Hmmm. I just tried the x11 terminal and it works there. Are you upgraded to gnuplot 5? – Dan Sp. Jul 04 '18 at 15:59
  • It's working, so many thanks. Another question, the syntax used in the older versions to change the point's color it's no working when i use the number instead the usual characters. There is another way to change the points color? by the way, thanks by the hint – Handel Sarache Jul 04 '18 at 16:25
  • You can use `plot sin(x) with points pt '1' textcolor rgb "red"`. Take a look at `help textcolor`. – user8153 Jul 04 '18 at 18:31