matplotlib-basemap Questions
3
Solved
The etopo background pic's resolution is very low in default. How can I get a high resolution background ?
Pristine asked 25/12, 2013 at 3:29
1
I would like to plot a trajectory on a Basemap, and have country labels (names) shown as an overlay.
Here is the current code and the map it produces:
import pandas as pd
import matplotlib.pyplo...
Antiperistalsis asked 21/6, 2015 at 9:46
1
Solved
I am trying to overlay contours on top of a filled contour plot in matplotlib for some atmospheric data. However, my contour labels are not always showing up onscreen. Below is an example:
As yo...
Content asked 3/6, 2015 at 6:19
1
Solved
I'm plotting data on a basemap of the eastern seaboard of the U. S. and Canada through Matplotlib. In addition to the base layer (a filled contour plot), I overlayed a shapefile of this focus regio...
Laze asked 17/5, 2015 at 2:2
1
Solved
I am trying to plot a scattered heat map on a defined geo location. I can very well plot a normal scattered map with no background but I want to combine it with a given lat and lon. I get the follo...
Molal asked 14/5, 2015 at 18:31
1
Solved
I am attempting to plot a dataset over the 'hammer' basemap using a scatter plot. However, the data points won't plot on top of the continents. I noticed in the matplotlib example, there is also no...
Narration asked 12/4, 2015 at 14:12
3
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 = Basemap(projection='cyl',llcrnrlon=-180,...
Beriberi asked 25/10, 2011 at 13:16
1
I have been trying to draw arrows on a Basemap object for quite a while already. I found help for drawing lines on the map, but it seems that the arrowhead just does not want to appear.
from mpl_...
Jolynjolynn asked 13/1, 2015 at 16:12
3
Solved
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 ma...
Vampire asked 28/11, 2012 at 13:34
2
Solved
This is a question I asked several months ago and am still struggling to come to a solution. My code gives me a basemap and a contour plot side by side (but printing to file only gives the contour ...
Earldom asked 11/11, 2014 at 18:54
1
Solved
I have the figure shown below. Presently the figure's colorscheme uses the entire range of the colormap (mpl.cm.Paired). What I want to do, and have been unable to figure out, is how to limit matpl...
Mishap asked 29/9, 2014 at 14:41
1
Solved
String formatting can by used to specify scientific notation for matplotlib.basemap colorbar labels:
cb = m.colorbar(cs, ax=ax1, format='%.4e')
But then each label is scientifically notated with...
Bassorilievo asked 18/8, 2014 at 11:48
1
Solved
I'm new to Python with a question about Cartopy being able to be used in a 3D plot. Below is an example using matplotlibBasemap.
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Ax...
Seals asked 21/5, 2014 at 13:58
2
As the title suggests, I'm trying to plot a Basemap map on the z=0 surface of a matplotlib.mplot3d lineplot. I know the Axes3D object is capable of plotting on the z=0 surface (via Axes3D.plot, Axe...
Saw asked 28/5, 2011 at 3:15
1
Given that I have three matrices which describe the data that I want to plot:
lons - 2D matrix with [n_lons,n_lats]
lats - 2D matrix with [n_lons,n_lats]
dataRGB - 3D matrix with [n_lons,n_lats,3...
Magree asked 6/3, 2014 at 11:12
2
Solved
Is there a readily available method for extrapolating the grid corner positions (blue dots) from grid center positions (red dots)?
The grid I am working with is not rectangular, so regular bi-lin...
Valma asked 26/3, 2014 at 16:12
1
Solved
I am trying to animate some density data on a basemap map. Following an approach as was done in [this SO question][1], I get the following error:
/usr/local/lib/python2.7/dist-packages/matplotlib/...
Stomatology asked 27/3, 2014 at 22:57
2
Solved
I am trying to map a dataset with associated latitude and longitude. The details of the data I am using are given below:
Variable Type Data/Info
-------------------------------
lat ndarray 1826x96...
Brame asked 7/9, 2012 at 11:24
1
Solved
I've looked and looked for a solution to this problem and am turning up nothing.
I'm generating rectangular FITS images through matplotlib and subsequently applying WCS coordinates to them using ...
Recor asked 28/1, 2014 at 19:33
1
Solved
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
m = Basemap(projection='cyl',resolution='c',area_thresh=10,llcrnrlon=-180,urcrnrlon=180,\
llcrnrlat=-90...
Kedge asked 12/12, 2013 at 16:1
3
Solved
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 ...
Caneghem asked 17/12, 2012 at 13:39
1
Solved
I would like to plot a raster tiff (download-723Kb) using matplotlib Basemap. My raster's projection coordinates is in meter:
In [2]:
path = r'albers_5km.tif'
raster = gdal.Open(path, gdal.GA_Read...
Harrumph asked 10/12, 2013 at 7:44
1
Solved
I was thinking to put a text on my map, like the satellite imagery.
import numpy as np, matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
m = Basemap(resolution='l',projection='...
Wisner asked 3/12, 2013 at 23:35
1
Solved
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...
Acrospire asked 12/9, 2013 at 19:21
2
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 ...
Carnet asked 22/4, 2013 at 8:5
© 2022 - 2024 — McMap. All rights reserved.