简体   繁体   中英

How to Increase Matplotlib Basemap Size?

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

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()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM