Added ability to resize the plot to a given size.