Made it so that function can scatplot matrices that contain the same number of columns