I'm working with the python basemap library and am plotting data over Greenland using an orthographic projection. However I find that due to the location of the coordinates, basemap auto plots the image in this orientation.

Does anyone know how to rotate it so that it is upright instead?

Here is some minimal reproducible code that plots the map without the satellite data:

from mpl_toolkits.basemap import Basemap, cm
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(13, 7))

lon_0 = 42.85565185546875
lat_0 = 75.9834976196289
llx = -2675341.073371827
lly = 316461.22954259627
urx = 286695.76147077326
ury = 3171829.6041646637

m = Basemap(projection='ortho',lon_0=lon_0,lat_0=lat_0,resolution='l',\



Current image:

Rotated Image


Desired image

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.