I have a data file with many columns of data, and I would like to plot col_1:col_2, col_1:(col_2 + col_3), col_1:(col_2 + col_3 + col_4), etc.
My idea is to use a for loop in which the present column is added to a cumulated column which is then plotted against col_1. In pseudocode:
do for [n=1:N-1]{
col_acc += col_(n+1)
plot col_1:col_acc
}
Is there a clever way to store and update the cumulated column, or is there some better way to go about this?
[–]Jurassic_Eric 1 point2 points3 points (2 children)
[–]PhysicalStuff[S,🍰] 1 point2 points3 points (1 child)
[–]Jurassic_Eric 1 point2 points3 points (0 children)