The matplotlib basemap toolkit is a library for plotting 2D data on maps in Python. It is similar in functionality to the matlab mapping toolbox, the IDL mapping facilities, GrADS, or the Generic Mapping Tools. PyNGL and CDAT are other libraries that provide similar capabilities in Python.
0
votes
0answers
8 views
cartesian grid projected to geographical coordinates
I have a set of grids in cartesian coordinates (x, y, z) which I would like to project onto geographical coordinates. When I use imshow with matplotlib basemap it seems as though the grid is simply ...
7
votes
2answers
294 views
Python GUI from Java
I am working on a program which takes a user input and generates an output as a map projection plot.
The easiest map projection library that I have found is matplotlib-basemap, written in python a ...
1
vote
2answers
329 views
Fill countries in python basemap
Hi I am trying to plot a map using pythons basemap with some countries filled in a certain colour.
Is there a quick and easy solution out there??
7
votes
2answers
1k views
Draw polygons more efficiently with matplotlib
I have a dateset of around 60000 shapes (with lat/lon coordinates of each corner) which I want to draw on a map using matplotlib and basemap.
This is the way I am doing it at the moment:
for ii in ...
1
vote
2answers
320 views
plot trajectories on an map using basemap
import numpy as np
data = np.loadtxt('path-tracks.csv',dtype=np.str,delimiter=',',skiprows=1)
print data
[['19.70' '-95.20' '2/5/04 6:45 AM' '1' '-38' 'CCM']
['19.70' '-94.70' '2/5/04 7:45 AM' '1' ...
1
vote
1answer
50 views
Is it possible to show the 'back side' of the earth with matplotlib basemap using orthographic projection?
Basically I want to make the body of the Earth "transparent" so that an object (a point or a patch, etc) and its antipodal image can be displayed simultaneously on the same orthographic map. Is this ...
1
vote
2answers
142 views
Plotting sphere grid with matplotlib basemap
I would like to draw a grid covering all the sphere on an orthographic projection.
The issue is cells outside the projection are not drawed correctly. This happened with drawgreatcircles as pointed ...
1
vote
1answer
63 views
How to use BaseMap with chaco plots
I had developed scatter and lasso selection plots with Chaco. Now, I need to embed a BaseMap [with few markers on a map] onto the plot area side by side.
I created a BaseMap and tried to add to the ...
1
vote
1answer
184 views
Automatically center matplotlib basemap onto data
I would like a solution to automatically center a basemap plot on my coordinate data.
I've got things to automatically center, but the resulting area is much larger than the area actually used by my ...
1
vote
1answer
55 views
Cryptic link error. Where do I start?
I'm trying to build the basemap toolkit, from source, for matplotlib to run on my MacBook Pro under OS X 10.8. The C and C++ compiler are those included with the latest Xcode package. The package ...
1
vote
1answer
95 views
pcolormesh draws not points but lines between data points
I need to plot data of rain summas (from satellite observations) onto a map from grib2 files. Finally I managed to load the data via text files into numpy arrays and tie it with picture coordinates ...
0
votes
0answers
38 views
Coordinate transformation in Basemap do not match proj4 transformation results, plotted array appears shifted
i'm trying to plot an array using basemap and a lambert conformal conic projection (lcc). I have native coordinates x,y in EPSG 31287 system. I setup the coordinates and the area to plot giving the ...
-1
votes
1answer
105 views
to plot points on a country map dynamically
I am working on a taxi dataset. I want to plot them on country map.
also, after plotting the trajectories of the taxis, i want the user to choose a point on the map and request him to enter an ...
3
votes
3answers
100 views
why does my colorbar have lines in it?
Does anyone know why my colorbar has what appear to be lines in it? Or rather why is the color transition not smooth? I'm using basemap, obviously, but that shouldn't matter since it's all matplotlib ...
0
votes
0answers
128 views
Python solution to transforming polar stereographic data to mercator projection
I've data in polar stereographic projection and the lat and lon values as well. But I cannot seem to find a simple way to transform this to a mercator (regular square lat and lon) projection in ...