adapt diagram size to number of things & time points