Help with my Ev3 printer
You are using the function run_target... which tells the motor to run to a specific angle.
So it turns to an absolute position...
This might be correct for the pen_up and pen_down cases, but I think that for the movement, you want relative movement, i.e. relative from your current position, hence I think the instruction you need is run_angle instead of run_target.