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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -