Skip to main content

All Questions

0 votes
1 answer
25 views

Basemap plots in Matplotlib have cutoff map boundary lines

When trying to create a grid of maps in matplotlib using the Basemap toolkit, I noticed that the line that bounds the map projection is cut off on all four sides. Look at the following minimal example ...
Egor Lappo's user avatar
1 vote
1 answer
61 views

Python: Plotting a Basemap in the x-y-plane of a 3d plot

I am trying to get the code contained in https://basemaptutorial.readthedocs.io/en/latest/basemap3d.html to work. However, I get an error already in the first snippet: import matplotlib.pyplot as plt ...
ahul-fell-awen's user avatar
1 vote
0 answers
43 views

Basemap nightshade() on Robinson Projection and lon_0=-180

I'm attempting to plot day/night shading on a Robinson projection centered at -180 degrees with Basemap, and as you can see, the shading doesn't look right. I'm also getting a warning about a non-...
GPSmaster's user avatar
  • 914
0 votes
1 answer
103 views

How to plot streamlines with netcdf data in python using cartopy or basemap?

I wanted to plot streamlines with NOAA from composite (2.5*2.5 lon/lat). I tried to draw it with basemap (The codes are attached) but I face to this error: 'y' must be strictly increasing. After that, ...
Sedighe's user avatar
0 votes
0 answers
80 views

Basemap Robinson Projection Map Border Cut Off on Left and Right Edges

I'm using Basemap to plot a global contour on a Robinson map projection, and I've noticed an aesthetic issue that has been bothering me. In every example I've come across using the Basemap Robinson ...
GPSmaster's user avatar
  • 914
0 votes
0 answers
37 views

contourf, hatching not working on the last plot in a panel plot

Hatching don't work on the last plot in a panel plot. The first and second plots are ploted fine, but the last plot doesn't work. The "DJF_sig" variable is fine, I have attached a previously ...
Hwa Jin Choi's user avatar
4 votes
1 answer
220 views

How to overlap a geopandas dataframe with basemap?

I have a shapefile that I read as a geopandas dataframe import geopandas as gpd gdf = gpd.read_file('myfile.shp') gdf.plot() where gdf.crs <Projected CRS: ESRI:54009> Name: World_Mollweide Axis ...
emax's user avatar
  • 7,265
0 votes
1 answer
135 views

Plotting a grid in km with a center point in latitude and longitude onto a map

I want to plot a square grid of size 2km by 2km with the point (latitude, longitude) in degrees: co_ord = (47.9187393, 106.9175013) located at the center of the square grid. I have tried: import ...
jim_athon's user avatar
1 vote
1 answer
46 views

Basemap with joint histograms plot

Here is the code returning the figure below: import seaborn as sns plt.figure(figsize=(8, 8)) gs = plt.GridSpec(3, 3) ax_main = plt.subplot(gs[1:3, :2]) ax_lon = plt.subplot(gs[0, :2]) ax_lat = plt....
Roland's user avatar
  • 461
0 votes
1 answer
490 views

How to use matplotlib.pyplot.contourf to plot a density array

I have an xarray Dataset called dens that I would like to plot. This is the Dataset: <xarray.Dataset> Dimensions: (time: 641, lat: 30, lon: 30) Coordinates: * time (time) datetime64[ns] ...
Yotam Ben Saadon's user avatar
0 votes
1 answer
576 views

property of 'QuadContourSet' object has no setter error after update matplotlib in python

I wrote and ran a cod to plot a netcdf file. after upgrade pip and Libraries used , I got an error:property of 'QuadContourSet' object has no setter. I would be grateful if someone could help me to ...
Sedighe's user avatar
0 votes
0 answers
92 views

How to visualise overlay of quiver plot over video frames?

I have the following code segment where frames from a video are read sequentially. Next, the frames are cropped and intensity wise clipped from upper and lower side. The following segments demonstrate ...
Aleph's user avatar
  • 217
0 votes
1 answer
37 views

Color Track depending on intersecting Geography/Country

In the below Cartopy snippet, I would like to color the track (based on csv coordinate data) in yellow if it intersects any of the EU member states. I have automated the coloring of the states using ...
Wasserwaage's user avatar
0 votes
1 answer
2k views

Add U.S. State Borders to plot

Can someone tell me how to modify the script below to add U.S. state borders using Geopandas? I have tried but can't seem to get it to work. Also, if there is a particular state border shapefile that ...
bayouwxman's user avatar
-1 votes
1 answer
689 views

Error command 'msbuild' failed: None when Install BaseMap for Windows 10 64 bit

im so newbie in matplotlib, and i want to install basemap in my windows 64 bit laptop. i use python 3.11.5 and i have just successfully: install pyproj-3.3.1-cp311-cp311-win_amd64.whl osgeo4w in ...
doughstone's user avatar

15 30 50 per page
1
2 3 4 5
47