8

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

2
  • Are you using an interactive backend?
    – tacaswell
    Feb 20, 2013 at 6:41
  • can you post some sample code that we can modify?
    – Paul H
    Feb 20, 2013 at 16:12

1 Answer 1

14

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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.