get length from labels - sometimes the data for the axes is not reflective, as in the case of images.