python 2.7 - Text wrap with box in Basemap -


i'd write text on world map pointing several locations. text written each location short, few lines, 1 or 2 words/numbers (i.e earthquake magnitude, location, date). there pythonic way perform this?

since matplotlib-basemap based on matplotlib, can use

plt.text(x,y,'yourtext') 

to write text onto map. if want have boxed, add like:

plt.text(x,y,'yourtext',bbox={'pad':10}) 

see http://matplotlib.org/users/text_intro.html.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -