Figure size that exceed screen size -- Matplotlib python

Sometimes we need to create a plot with a very few degrees in longitude/ latitude in one direction and many degrees in longitude/latitude in the other direction. Yet, as the Cartopy keep the aspect ratio for the map, the plot size will be too small if we are plotting few longitude/latitude in one direction and large longitude/latitude in one direction. To overcome this, the figure size may need to exceed the screen size. To do that To overcome that, we need to cancel showing an image so that matplotlib function savefig is able to save the figure with the actual given size. To accomplish that, we use the following codes


import matplotlib    
matplotlib.use('agg')
plt.ioff()

Comprehensive information about that could be found Here