The problem is that Ferret defines RSUM on the "wrong" gridpoints. You want to shift it to the left by half gridspacing. To do so would require a bit of complicated manipulation . . . and you also want the initial value of the cumulative sum to be zero. . . . (Personally, I would write the values to a text file, read it by a program and compute the cumulative sum, and plot the result with gnuplot.)