Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Python to plot points on a World Map [closed]

Tags:

python

plot

I want to make a earthquake world map app that pulls data from a us.gov text file and displays one earthquake at a time on the map as a dot. I know how to pull and parse the data, but I'm struggling with how to actually plot the points on the map. Can anyone tell me how they would do this with Python? I've done it with Java before by using an imported class called Zen.Java, is there an equivalent for Python?

like image 391
user1835351 Avatar asked Dec 12 '12 04:12

user1835351


Video Answer


2 Answers

Take a look at matplotlib basemap http://matplotlib.org/basemap/

and examples here http://matplotlib.org/basemap/users/examples.html

like image 144
Piti Ongmongkolkul Avatar answered Nov 10 '22 02:11

Piti Ongmongkolkul


Try pyGal. Its a nice lib for python, with many features. http://www.pygal.org/en/stable/documentation/types/maps/pygal_maps_world.html

like image 41
erfelipe Avatar answered Nov 10 '22 03:11

erfelipe