How to increase the size of the Matplotlib base?

How to increase the size of the base card? It is small compared to the size of the accompanying color strip. My basemap includes the geographic locations that I want; it's just physically too small. Thank you in advance for any recommendations you can provide.

+5
source share
1 answer

One possibility is to call plt.figure(figsize=(WIDTH, HEIGHT))before you call any of the drawing methods of your map object, for example:

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

plt.figure(figsize=(12,6))
map = Basemap()
map.drawcoastlines()
map.plot()
+9
source

All Articles