Skip to main content

All Questions

0 votes
1 answer
24 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
110 views

Creating Animated SST Plot with Python

I would like to create a plot that showcases sea-surface temperature changing over the years, very similar to the SST maps that NOAA creates. The image I've inserted is essentially what the plot ...
rach's user avatar
  • 11
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
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 vote
0 answers
221 views

Need help transferring basemap to cartopy on python

I need to recreate old code that plots Hurricane tracks. I've learned that Basemap no longer works with Python 3 so I need to use Cartopy to get this to work. Here's what I have. I believe my dataset ...
jakehou97's user avatar
0 votes
0 answers
224 views

ValueError: not enough values to unpack (expected 2, got 1), basemap plots

I try to plot three different variables lat,lon,dectime with dimensions (3245,450),(3245,450) and (3245,). The error type i get is obviously asscociated with the dimension of the variable dectime. ...
Ανδρέας Ψευτογκάς's user avatar
0 votes
3 answers
1k views

Multiple plots on the same graph

I want to plot on the same graph one function (data coming from an array) and the line between (xmin,ymin) to (xmax,ymax) of data import numpy as np import matplotlib.pyplot as plt exo_data = np....
Michel Chance's user avatar
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

15 30 50 per page