Magnetic scale