Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    To the person who downvoted this: in the future please write what's the problem in the comments section. I have already fixed it but it took me a while to realize that the solution didn't work. A downvote with no comment pointing out the issue is not very helpful. Commented Apr 2, 2016 at 13:35
  • That works, thank you. The downside it that it implies 2 temporary files and an external system command. Can anybody think of a purely "internal" gnuplot solution? Commented Apr 3, 2016 at 15:00
  • @smartmic Using smooth often interferes with style options, as in your case. The solutions I usually use myself, and those that I have seen most often by others, involve dumping data to external files and/or using external commands. That said, you could do the sum yourself by parsing the data on the fly (as opposite to relying on the smooth cumulative functionality. See my edit for how to do it. Commented Apr 3, 2016 at 16:10
  • 1
    @smartmic Gnuplot isn't a data processing tool, but a plotting program. For convenience it provides some useful and common operations. For more advanced processing gnuplot banks on its ability to pipe data through other programs or scripts in the spirit of UNIX command line tools. You shouldn't blame gnuplot for things it isn't designed for. If you need more, use octave, scilab, matplotlib, ... Commented Apr 3, 2016 at 17:13