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
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
2k views

Plot data at coordinates lat, lon using matplotlib and basemap

I collect data about things like water temperature, air temperature, humidity etc. in a csv-file, and I want to plot that data on a map. However, I run into issues when trying to plot it, since ...
Tmpecho's user avatar
  • 11
0 votes
1 answer
186 views

Generating basemap & plotting in separate cells in jupyter with colorbar

I wish to generate a basemap map and then plot a number of scatterplots on this basemap (in jupyter-lab) without having to load a new basemap each time. I followed the instructions in this post ...
Seraf Fej's user avatar
  • 271
0 votes
1 answer
1k views

Unable to plot circles on a map projection in basemap using Python

I'm trying to plot circles on a miller projection map using a center latitude, longitude and radius. I can't get the circles to show up on the map projection. I've tried plotting them using ...
Brandon's user avatar
1 vote
0 answers
335 views

Is it possible to plot really thin lines in Python?

I am trying something like this: kw = dict(linewidth=0.0001) e = FancyArrowPatch(pos[u],pos[v], arrowstyle='-|>', color=G[u][v]['color'], connectionstyle='arc3,...
DanielTheRocketMan's user avatar
3 votes
1 answer
585 views

Basemap npstere projection returns blank map without data

I am trying to make a plot of sea ice concentration over the North Pole using a Polar Stereographic Projection with Basemap. The map returned has all the formatting done to the projection but doesn't ...
Sarah Thunberg's user avatar
0 votes
0 answers
310 views

How to plot this 3d Axes matplotlib with earth map plot?

I have plotted axis 3d using plot_trisurf but i am not able to plot this with earth map /basemap. some of the questions: How i can plot same figure as above in Map in 3d? How i can increase my ...
Ziddi Heart's user avatar
0 votes
0 answers
32 views

This script in python 2.x worked and made multiple plots in one run. Now, in python 3.x, it only makes one plot

I wrote this about a year ago in python 2.x. I have since switched over to 3.x, and I am not getting any errors, but as mentioned above, only one plot is being outputted, the first stdev one. If I use ...
Katie's user avatar
  • 1
0 votes
1 answer
1k views

How to show labels on map on mouse click/hover?

I have plotted a series of latitude-longitude pairs using Basemap in Python. A sample image is: I need to display the names of the places when the mouse is clicked (or hovered) on the points. I have ...
Srivatsa Sharma G's user avatar
0 votes
1 answer
453 views

Python - basemap.contourf produces blank map

i'm trying to plot some data on a map using mpl_toolkits.basemap lib. I almost got it right, but the map comes blank when run the script: Map I get from the script My guess is that the contourf ...
i'mlaguiar's user avatar
0 votes
1 answer
3k views

Set Basemap meridians or parallels labels within plot or change color of text

I am making a map with Basemap in python and I'd like for the meridians/parallels to be either inside the plot or for the text (i.e. 0˚N) to be white. I want to do this so that I can set the figure ...
JAG2024's user avatar
  • 4,347
2 votes
0 answers
3k views

Python alternative to Basemap

Not seen any thread on this so thought I would ask, what packages are there available with similar functionality to basemap? I hear basemap is deprecated (e.g. IndexError when using some projections ...
J W's user avatar
  • 637
0 votes
1 answer
221 views

Matplotlib basemap polygon throws an error but succeeds if something is plotted

I've been using basemap with matplotlib in python for quite a while now but was building up a new piece of code and came across this really strange anomaly and I don't know how to get round it. If I ...
Eamonn Kenny's user avatar
  • 2,068
1 vote
1 answer
964 views

Plotting data points onto matplotlib Basemap in Jupyter Notebook

Link to full code I am able to successfully create a Basemap of the US within a Jupyter Notebook complete with shapefile, coloring, and borders in Cell 4. I am trying to plot many data points onto ...
Alex's user avatar
  • 185

15 30 50 per page