Fix for x and y axes with differing number of elements.