matplotlib-basemap Questions
3
I tried to import basemap as follows in Python:
from mpl_toolkits.basemap import Basemap
and I get the following error:
Traceback (most recent call last):
File "<ipython-input-16-880204a64...
Crabbe asked 15/1, 2019 at 15:29
2
When plotting data using pcolormesh on a basemap projection (or a cartopy projection) I notice strange lines appear when I set the alpha value to less than 1.
Example code:
from mpl_toolkits.bas...
Aplenty asked 23/12, 2019 at 18:50
1
Solved
Im trying to project Goes-16 Netcdf files into basemap, but im running into the same error every time. Ive tried downgrading python from 3.7.3 to 3.6, updating and downgrading basemap, and there's ...
Deception asked 18/6, 2019 at 0:32
4
What works is
import mpl_toolkits
What not works is (Import Error basemap not found)
from mpl_toolkits.basemap import Basemap
I followed the instructions here :
http://matplotlib.org/basema...
Eyas asked 26/1, 2015 at 19:21
1
Solved
So I want to plot a 3d map using matplotlib basemap. But an error message comes popping up.
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.basemap impo...
Segregationist asked 31/5, 2019 at 7:33
6
Solved
I use Python 3.5 with latest version of Anaconda on Windows (64 bit). I wanted to install Basemap using conda install basemap. Apparently there is a conflict between Python 3 and basemap. After som...
Lilliamlillian asked 1/3, 2016 at 7:16
1
I'm trying to install basemap, and it seems worked fine using,
conda install -c conda-forge basemap
in anaconda prompt. However when I entered this code on my jupyternotebook,
import matplotli...
Sextant asked 20/9, 2018 at 23:44
2
I tried
pip3 install basemap
but Basemap seems not to be on PyPI.
There is an old question but it has no answer.
What I did
I downloaded basemap 1.07 (source)
Matplotlib 2, numpy 1.11, PIL, ...
Epicedium asked 4/10, 2017 at 8:43
1
I'm trying to install vn 1.2 of Matplotlib on my Ubuntu computer so that I can use some of the animation features. Crucially I also need Basemap.
The only way I've found of importing Basemap is th...
Anthraquinone asked 22/8, 2013 at 16:30
1
Have had a nightmare downloading basemap, have had so many errors and fixing them, but yet another shows up. I now keep getting the following error:
Using spyder I write:
from mpl_toolkits.basema...
Lorinalorinda asked 19/4, 2019 at 23:40
2
Solved
I have this code :
plt.scatter(data_projected[:,0],data_projected[:,1],c=digits.target
,edgecolors='none',alpha=0.5,cmap=plt.cm.get_cmap('nipy_spectral',10));
My confusion comes from plt.cm.ge...
Schlep asked 15/11, 2017 at 8:12
1
I used to use the following commands to install libgeos and basemap in google colaboratory and it worked perfectly until last week.
!apt-get -qq install libgeos-dev
!pip install -qq https://github...
Windsor asked 11/3, 2019 at 16:50
1
Solved
I am new in working with python.
I have a question regarding How to plot a map in Python using Latitude and Longitude data ?
What i have done before :
Step 1 : I have a CSV file which contains ...
Impracticable asked 31/1, 2019 at 7:48
6
I'm a newbie to making/plotting on maps with python, been trying to follow this blogpost to generate a world map ( http://sciblogs.co.nz/seeing-data/2011/08/12/plotting-geographic-data-on-a-w...
Danika asked 25/9, 2012 at 7:50
2
Solved
My python script below adds a picture (a generated rectangle on this simple example) and GPS track on a map generated with Basemap module.
Now I would like to make both track an rectangle transpare...
Favourable asked 12/8, 2018 at 12:52
3
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??
Rhaetia asked 15/11, 2012 at 11:53
1
Solved
Is there a way to align python basemaps like this figure below?
Here's some sample basemap code to produce a map:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
fig = p...
Cancel asked 17/5, 2018 at 5:8
2
Solved
I want to know how can i plot a circle with Basemap using latitude and longitude.
import matplotlib.pyplot as plt
fig,ax = plt.subplots()
ax.axis([0,10,0,10])
circle1 = plt.Circle((5, 5), 2, colo...
Call asked 6/3, 2018 at 15:38
5
Solved
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 ...
Pool asked 10/12, 2012 at 6:53
1
Solved
I am trying to plot 1x1 degree data on a matplotlib.Basemap, and I want to fill the ocean with white. However, in order for the boundaries of the ocean to follow the coastlines drawn by matpl...
Mascagni asked 5/2, 2018 at 10:46
1
Solved
I am searching way to fill polygons of a shapefile based on a value.
So far from basemap tutorial (http://basemaptutorial.readthedocs.io/en/latest/shapefile.html) i 've found how to fill the polygo...
Golgotha asked 30/1, 2018 at 11:32
7
Solved
Edit: Since this seems to be a popular post, here's the solution that seems to be working well for me. Thanks @gazzar and @mfra.
cbar.solids.set_rasterized(True)
cbar.solids.set_edgecolor("face")
...
Phosgene asked 21/2, 2013 at 13:22
2
Solved
I am currently employing this code to have pop up annotatations on a map when i click on a point in a Basemap Matplotlib Plot.
dcc = DataCursor(self.figure.gca())
self.figure.canvas.mpl_connect('...
Catalyst asked 25/9, 2012 at 5:4
1
Solved
I am making a map plot, where I want to put a small text label inside every state. My current problem is that the text goes outside the state limits, so it doesn't look nice:
I tried using mean,...
Isallobar asked 25/7, 2017 at 10:30
2
Any ideas on how can I insert a scale bar in a map in matplotlib that shows the length scale? something like the one I have attached.
Or maybe any ideas on measuring and showing distances automati...
Repeat asked 30/9, 2016 at 8:12
© 2022 - 2024 — McMap. All rights reserved.