Glanced gnuplot book but couldn't found like this comparison and sum example. if I think rightly not many people need it.
I have to sum comparison results among themselves(bound) and plot as a column. For example; I have to sum these 26 of comparison result plot as a column then sum 86 of comparison result as another bar pillar.
I don't have following 0 or 1 value, I want to compare and add gnuplot before plotting the bar chart. We can skip this step for now cause I made another program comparison, but summation should be by gnuplot.
I have explained first step so far. Moreover, I have a thousand 26, 86, 12,... whatever. I need a loop which sum those thousands and sum next thousand till 70000. I need just look these thousands as one thing like as pillar in whole graph for comparison.
Could you help?
| S_index | F_index | Comparison Result | Bound |
|---|---|---|---|
| 2 | 1 | 0 | 26 |
| 2 | 3 | 0 | 26 |
| 2 | 0 | 0 | 26 |
| 1 | 0 | 0 | 26 |
| 3 | 3 | 1 | 26 |
| 2 | 3 | 0 | 26 |
| 0 | 0 | 1 | 26 |
| 0 | 3 | 0 | 26 |
| 0 | 0 | 1 | 26 |
| 2 | 3 | 0 | 26 |
| 3 | 3 | 1 | 26 |
| 0 | 3 | 0 | 86 |
| 0 | 0 | 1 | 86 |
| 0 | 0 | 1 | 86 |
| 0 | 0 | 1 | 86 |
| 2 | 0 | 0 | 86 |
| 1 | 3 | 0 | 86 |
| 3 | 3 | 1 | 86 |
| 3 | 2 | 0 | 86 |
| 0 | 3 | 0 | 86 |
Added data which sample of the csv file
2,0,28
2,1,28
0,3,28
2,1,28
3,3,28
1,3,28
1,1,28
1,0,28
2,2,28
2,3,28
0,1,28
1,2,28
0,3,28
0,0,28
2,3,88
2,2,88
3,2,88
3,2,88
1,3,88
2,2,88
3,0,88
1,3,88
3,3,88
0,0,88
2,0,88
1,2,88
0,1,88
3,0,88
3,0,88
1,3,110
1,2,110
1,3,110
3,2,110
2,2,110
0,0,110
3,3,110
3,2,110
2,0,110
2,1,110
0,1,110
2,0,110
0,3,110
0,2,110
3,2,110
0,3,110
1,0,110
2,1,110
1,3,110
1,3,110
2,3,110
3,1,110
0,0,110
2,1,110
1,0,110
0,1,110
1,1,110
3,3,110
0,1,110
1,3,110
### sum up for certain conditions
reset session
set offset 0,0,0.5,0 # <left>,<right>,<top>,<bottom>
set boxwidth 0.5
set style fill solid 0.5
set table $SumUp
plot "boundary.csv" u 3:($1==$2) smooth freq
unset table
set yrange[0:]
set grid x,y
plot $SumUp u 0:2:xtic(1) w boxes title "Sum"
### end of code
getting error
plot "boundary.csv" u 3:($1==$2) smooth freq
^
"gnuplot.gp" line 9: x range is invalid
gnuplot -v
G N U P L O T
Version 5.4 patchlevel 1 last modified 2020-12-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2020
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now 'qt'
unrecognized option -v

.cvsor maybe.csv? What do you actually want to plot? Please edit your question and clarify.Column 3counts thousands.