Plotting length of magnetic sensor readings