Added API to get display size of the plot