Relative Content

Tag Archive for pythonmatplotlibplotramline-plot

Plotting line plot in Python matplot for array with billion entries, run out of RAM

In the below code, I create a big array, and I want to plot it as a line plot. I must use numpy’s memory mapped arrays that I learned about here to even create the array (and the x-values). This post Plotting a large number of points using matplotlib and running out of memory has the same issue, but not with a line plot, and I’m afraid I couldn’t figure out how to use those ideas to get my line plot to work. (Using the tqdm package to track progress of my loops, it seems that both loops complete, and then while drawing, the RAM explodes.)