Capnography monitor with illustration of tangled lines and untangles lines