extracts a vertical section of gcode for an extrusion printer