Skip to main content

All Questions

0 votes
1 answer
65 views

Is there any code for showing a different modes(charging,parking,driving) of a vehicle on map?

I have a location data set for a vehicle including LONGITUDE,LATITUDE and MODE (charging,driving and parking) as follows: longitude latitude mode x y charging x y1 charging x1 y3 parking x2 y2 driving ...
shristi's user avatar
0 votes
2 answers
390 views

Basemap: Get all data points on colorbar which each point refelecting the ploted color

I have a dataset, containing different types of trees in numerical i.e Types = 4,8,9,10,13,15,19,33 I am plotting these types on a scatter plot, each type being represented by a different color. I ...
code_error's user avatar
-1 votes
1 answer
499 views

pip install geos or basemap - fail to install

Can anyone help please, I'm trying to install geos and basemap in jupyter notebooks but getting the same error for both. Selections of output posted below. × Running setup.py install for lxml did ...
Tez's user avatar
  • 97
0 votes
0 answers
74 views

Plot a line graph on python basemap

Unable to plot a normal graph on python base map. The code I used to plot base map and line graph is as follows: import matplotlib.pyplot as plt import numpy as np fig = plt.figure(figsize=(12,9)) m ...
Prater's user avatar
  • 107
1 vote
2 answers
13k views

IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed while Plotting a grid

first I would like to explain what I have done so far! The aim of my work is to interpolate data from different measuring stations, then take the mean value of the values of the individual ...
Weiss's user avatar
  • 303
0 votes
1 answer
494 views

Is there a way to control which vertices connect in a plotly.express.line_geo map?

I'm trying to make a connection map that has the option to use an animation_frame to show different months/years. Plotly.express has this option, but the plotly.express.line_geo maps seem to just ...
trpmgo3's user avatar
  • 49
0 votes
1 answer
3k views

How to replace values in netcdf file with Nan?

I'm using a NASA GISS netcdf file with gridded monthly temperature values. According to the readme file "Missing data is flagged with a value of 9999.f" I am trying to plot the data but keep ...
Megan Martin's user avatar
0 votes
0 answers
143 views

plotting coordinates on the global map

i want to plot the three coordinates point on the global map along with the axis values. The coordinates and the cities name are as follows: lat lon name 17.38 74.48 STA -25.02 ...
manas's user avatar
  • 501
0 votes
1 answer
972 views

plotting stations on map

i have three stations named as A, B, C. I want to plot them on a map using matplotlib basemap. station A: latitude=17.8 longitude=74.48 station B: latitude=-25.02 longitude=25.60 station C: latitude=...
manas's user avatar
  • 501
1 vote
0 answers
431 views

hvplot heatmap with cartopy? A heatmap with more geo details?

Above are two visualizations of some temperature data in the Gulf of Mexico (land and deep ocean masked out). The same data are plotted here, in the top most picture using contouring with Matplotlib ...
spokati's user avatar
  • 55
1 vote
0 answers
328 views

adding required country basemap behind a plot, not very detailed , only outer boundaries

I want to include india and neighbouring countries political boundaries in the plot achieved How to do this? My result is this: What I want is like this: Code:- from netCDF4 import Dataset import ...
SAHIR AZMI's user avatar
1 vote
1 answer
6k views

ImportError: cannot import name 'dedent' from 'matplotlib.cbook' [duplicate]

Hi when trying to import basemap I get this error ImportError: cannot import name 'dedent' from 'matplotlib.cbook' I've tried a lot of trouble shooting and can't figure it out. I am using windows and ...
Kevin Falk's user avatar
1 vote
1 answer
1k views

How to replace df.ix if .iloc and .loc don't seem to work?

I'm trying to draw a map with Basemap following this tutorial: https://ramiro.org/notebook/basemap-choropleth/ This part of the code throws an error ('DataFrame' object has no attribute 'ix'): if iso3 ...
Rose Miller's user avatar
0 votes
1 answer
242 views

Issue plotting selected columns of a data-frame on a map based on the values of another column using pandas

I am new to python programming. I have a csv file with over 1000 rows. I will like to plot the columns (latitude and longitude) based on the value of the column (peak current) on a map. I usually get ...
Stan's user avatar
  • 3
2 votes
1 answer
4k views

how to plot the track of cyclone with marker colors according to intensity

I am trying to plot a track of a cyclone over a base map. I am successful in plotting it with markers of the same color what I want is to plot the markers according to the intensity change. I will ...
Debashis Paul's user avatar

15 30 50 per page