When item in the legend is toggled off, the active datapoints will take up the freed space in the plot. However, if the y-axis range has been adjusted, the space remains empty.