0

Can I do such a thing on gnuplot that it works? when buffer[i] == max change the color of the point

  fprintf(gnuplot, "if (\"%d\" == \"%d\") plot '-' with lines lw2; else plot '-' with lines lw 1 \n", buffer[i], max);

     for (i = 0; i < NUM_POINTS; i++)
    { 

        fprintf(gnuplot, "%d %d \n", i,buffer[i]); 
    }
Emperon
  • 91
  • 8
  • Unfortunately it's different – Emperon Aug 04 '17 at 17:34
  • 1
    Possible duplication https://stackoverflow.com/questions/3939200/line-plot-in-gnuplot-where-line-color-is-a-third-column-in-my-data-file/ Just google for examples, I think you may find a lot. – 0andriy Aug 04 '17 at 17:39

0 Answers0