10
votes
6answers
2k views

world map without rivers with matplotlib / Basemap?

Would there be a way to plot the borders of the continents with Basemap (or without Basemap, if there is some other way), without those annoying rivers coming along? Especially that piece of Kongo ...
9
votes
2answers
2k views

Why do I get “UserWarning: Module dap was already imported from None …”

I have python-matplotlib and python-mpltoolkits.basemap installed from Ubuntu packages. Installing python-mpltoolkits.basemap also installs python-dap as a dependency. When I import basemap, I get ...
8
votes
2answers
3k 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 ...
7
votes
2answers
3k views

Python Matplotlib Basemap overlay small image on map plot

I am plotting data from an aircraft on a map and I would like to insert this 75px by 29px PNG image of an airplane at the coordinates of the latest data point on the plot. As far as I know and ...
7
votes
2answers
563 views

Eliminate white edges in Matplotlib/Basemap pcolor plot

I am plotting data on a map using this code: import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.cm as cm from mpl_toolkits.basemap import Basemap from ...
6
votes
2answers
673 views

Python basemap stereographic map

I want to display some values on a stereographic map (in this case southpole (spstere)). If I display them on a cylindric map (cyl) everything is fine: m = ...
5
votes
3answers
326 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 ...
4
votes
1answer
1k views

Plot multiple lines in python/basemap

I have just started learning python/matplotlib/basemap and could really use some help. How do you plot multiple lines? Say my data looks something like: [(lat1,lon1) (lat2,lon2) (lat3,lon3)] ...
4
votes
1answer
893 views

Plotting curved line in Python Basemap

I would like to plot curved/arced lines on a Basemap map. I can plot a straight line using map.plot(x,y,..), but how do I make it curved/have arrows? In matplotlib, this can be done using ...
4
votes
1answer
103 views

Contour irregular data within polygon

I need to create filled contour plots of sea surface temperature (SST) data within a polygon, however I am not sure the best way to do this. I have three 1D arrays containing data for X, Y, and SST ...
3
votes
1answer
1k views

How to draw rectangles on a Basemap

I'm looking for a way to plot filled rectangles on a Basemap. I could easily draw the rectangle's edges using the drawgreatcircle method, but I cannot find a way to actually fill these rectangles ...
3
votes
2answers
366 views

Plot only on continent in matplotlib

I am drawing a map using basemap from matplotlib. The data are spreaded all over the world, but I just want to retain all the data on the continent and drop those on the ocean. Is there a way that I ...
3
votes
1answer
609 views

Basemap and density plots

I would like to create a density plot using basemap. The data I have is ungridded and repeating or very close to each other. I've tried gridding the data and then plotting the number of bins using ...
3
votes
1answer
86 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 ...
3
votes
1answer
454 views

Create simple Basemap that corresponds to a specific region on the Earth

I'm am trying to familarize myself with matplotlib and Basemap. As a start, I'm trying to generate an image of greenland that matches a specific grid for which I have data. The gruesome details ...

15 30 50 per page