AxiDraw released an update to their pen plotter tools, adding Hidden Line Removal. I wanted a quick way to "stress test" the tool, with around 5,000 overlapping rectangles, this is that code.
To use, press the "Params" button under the preview image on the right, change all the parameters to taste, then click the small "Open In New Window" button in the bottom-left corner (square with an arrow pointing up-right out of it). Once your design has opened in a new window, press a numbered key from 1-6, this will download an SVG file in sizes A1 to A6.
Then using the new AxiDraw tool, run the SVG through hidden line removal to test. Plotting the result is up to you.