All Questions
12 questions
2
votes
1
answer
325
views
How to get scatter points for a scatter plot with different colors in accordance to a particular range
hope everyone is doing well in these hard times. I am trying to plot the track of a cyclone with scatter points over a base map. I was successful in plotting it, but what I want is want the scatter ...
0
votes
2
answers
819
views
How to plot data on a basemap using matplotlib basemap
Two sections of my code are giving me trouble, I am trying to get the basemap created in this first section here:
#Basemap
epsg = 6060; width = 2000.e3; height = 2000.e3 #epsg 3413. 6062
m=Basemap(...
2
votes
2
answers
1k
views
How to plot a scatter plot on top of basemap with varying densities
I am trying to plot the pollution levels at different years and of different locations in India.
I am able to get the scatter plot and the basemap independently. However, I am facing difficulty in ...
1
vote
1
answer
916
views
How to convert the information from a shapefile from polygon to lat/lon
I need to make a scatter plot over a map. I have the shapefile to plot the map but I need to convert the information of shapefile (polygon) to lon and lat coordinates. This is my code:
borough = gpd....
1
vote
1
answer
622
views
Basemap scatterplot (Matplotlib) - Error can't set attribute
I have been trying to add two lists of floats to a scatterplot using the Matplotlib. I have simply created a Basemap with mostly default settings. However, whenever I attempt to run the script I get ...
0
votes
0
answers
1k
views
How to use a third variable to choose color for scatter plot in Matplotlib [duplicate]
I have a data set which provides latitude, longitude, and temperature for a time series of oceanographic readings.
Right now I am plotting the trajectory through lat/lon space thus:
fig = plt....
0
votes
1
answer
153
views
Onpick3 Hover nearest data point rather than list
After several days trying to figure this out, I thought I would ask for help...
I have 3 lists, lon, lat and pop all the same length. With lon[1],lat[1] corresponding to pop[1]. What I want to do, is ...
3
votes
3
answers
16k
views
How to draw Scatter plot on top of background using Basemap
I am trying to plot a scatter plot on a background using basemap. But it's overwriting the background. How do I retain the background?
I am using this code
%matplotlib inline
import numpy as np
...
1
vote
2
answers
1k
views
Scatter does not plot any points on Basemap
I have an array anomalies_ind that was created in this way:
data_path = r"C:\Users\matth\Downloads\TRMM_3B42RT\3B42RT_Daily.201001.7.nc4"
f = Dataset(data_path)
latbounds = [ -45 , -10 ]
lonbounds = ...
1
vote
1
answer
3k
views
Matplotlib scatter intensity
I have created a global contour for d18O with a specified range and colorbar.
lon = np.arange(-180.0,180.0,1)
lat = np.arange(-90.0,90.0,1)
m1 = Basemap(projection='mill',llcrnrlat=-90,urcrnrlat=90,
...
5
votes
1
answer
4k
views
scatter plot data does not appear on continents in 'hammer' basemap
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 not ...
3
votes
2
answers
6k
views
Redrawing plot on Basemap in Python
I am plotting a scatter plot on a Basemap. However, the data with this scatter plot changes based on user input. I would like to clear the data (only the data -- not the entire basemap figure) and ...