plot - ploting many files order on one line at gnuplot -


i have plot 10 files same legend, need order number inside files, because when write line @ gnuplot, shows bad image. numbers have before others show continue line on graph. looking red line possible see mean. there way that?

plot '<paste ../00/statistic100.txt ../01/statistic100.txt ../02/statistic100.txt ../03/statistic100.txt ../04/statistic100.txt ../05/statistic100.txt ../06/statistic100.txt ../07/statistic100.txt ../08/statistic100.txt ../09/statistic100.txt' linespoint ls 1 title 'reputation until 100%' 

thanks in advance! felipe

enter image description here

use smooth unique after plot command.

from gnuplot documentation:

the unique option makes data monotonic in x; points same x-value replaced single point having average y-value. resulting points connected straight line segments.

example

without ordering

plot "-" lines  0   3  2   4 -2   2 -5  -1  1   5  5   6 -1  -3  4   0 -3  -3  3  -4 -4   1 e 

result:

enter image description here

with ordering

plot "-" smooth unique lines  0   3  2   4 -2   2 -5  -1  1   5  5   6 -1  -3  4   0 -3  -3  3  -4 -4   1 e 

result:

enter image description here


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -