As I have checked some online dictionaries, I have found 'shorten' and 'shrink' as opposites of the 'stretch' word. But, I am not sure, yet.
As an example, suppose that shrink is the correct word, then I say in this figure
I am shrinking the plot from top to bottom or stretching vice-versa.