How to do accumulation plots with matplotlib

Hi, I am a new user to matplotlib. I have a huge list of values that look
like this:


each point basically represents the derivative of the line at that point, if
that makes any sense. I want to take this data and display it in a linegraph
as if it were this data:

[1,1,1,1,3,5,7,8,8,8,10,12,13,16,16,16,19,...] the line grows as the numbers get bigger. Is there a plot that takes
data in the form of my first list, or is my only option to create a forloop
and construct the second list manually and just use that?

It seems the target audience for matplotlib is scientific people who know a
lot about math and statistics, which I am not. A lot of the documentation
just goes over my head.


View this message in context:
Sent from the matplotlib - users mailing list archive at