Issue #5269: Fix unhelpful "length mismatch" error message on set_axis