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

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -