Pass None in Python or [] in MATLAB to remove sideband data while leaving the primary data untouched. # Python arr.set_axis(None) arr.axis_config # None arr.set_axis([]); arr.axis_config() % []