How to Increase Matplotlib Basemap Size?


Question

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

1
5
2/19/2013 10:47:27 PM

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()
9
1/26/2014 11:07:53 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon