Refactor get_plotting_extent into separate function for general reuse.
Refactor get_plotting_extent into separate
function for general reuse.

brendan-ward/rasterio,brendan-ward/rasterio,kapadia/rasterio,kapadia/rasterio,brendan-ward/rasterio,kapadia/rasterio