I am printing a large number of figures to files. After a certain number, I get an out of memory error which a lot of other people have reported as well.
This question addresses the problem, but I cannot use the solution as I am printing various kinds of graphs including surface, plot, contour, quiver and scatter.
Is there a practical solution or a feasible workaround for this memory pileup problem that would allow to run the entire image printing in an unsupervised batch?