How can I increase the size of the basemap? It is small compared to the size of the accompanying color bar. My basemap includes the geographic locations that I want, it is just physically too small. Thanks in advance for any guidance you can provide
Basemap is a matplotlib extension used to visualize and create geographical maps in python.
The Cartopy project will replace Basemap, but it hasn't yet implemented all of Basemap's features. All new software development should try to use Cartopy whenever possible, and existing software should start the process of switching over to use Cartopy.
Basemap is deprecated in favor of the Cartopy project.
One possibilty is to call plt.figure(figsize=(WIDTH, HEIGHT))
before you call any of the drawing methods of your map object, like so:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
plt.figure(figsize=(12,6))
map = Basemap()
map.drawcoastlines()
map.plot()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With