cartopy Questions
3
Solved
I want to add a 2nd axes at the top right corner of a 1st axes. After googling, I found two ways to do things like this: fig.add_axes(), and mpl_toolkits.axes_grid.inset_locator.inset_axes. But the...
Parceling asked 6/8, 2017 at 0:35
4
Solved
I am trying to install Cartopy on Ubuntu and need to install proj v8.0.0 binaries for Cartopy. However when I try to apt-get install proj-bin I can only get proj v6.3.1. How do I install the latest...
4
Solved
I'm trying to construct a simple function that takes a subplot instance (matplotlib.axes._subplots.AxesSubplot) and transforms its projection to another projection, for example, to one of the carto...
Londonderry asked 26/11, 2015 at 15:30
3
I am looking for help in plotting a (variable) number of filled contours onto a 3D plot. The rub is that the points need to be correctly geo-referenced. I have got the 2D case working, using Cartop...
Ammonia asked 15/1, 2018 at 18:46
3
Solved
I am trying to install Cartopy on Windows. I have installed all the dependencies from their website, however when I go to run
pip install Cartopy
I get:
Complete output (5 lines):
setup.py:117: ...
0
Is there a way to improve the rendering of this interactive matplotlib/cartopy script ?
Please install first ipympl
https://github.com/matplotlib/ipympl
I haven't found how to change the central lo...
Kearse asked 2/10, 2022 at 13:48
3
Solved
I would like to mask the Land area from Sea Surface Temperature Data over the globe. I am using Cartopy to plot the data.
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as c...
Fur asked 10/4, 2016 at 4:33
7
It seems that I cannot get pip to install Cartopy on my computer. I work straight from the windows command line (no Anaconda or other proxy programs).
When I try "pip install cartopy" I get the e...
2
Solved
I am currently working in internship on atmospheric/climate physics. I have netcdf datas from ERA5 (copernicus) that I already plotted in different maps, graphics etc...
I need to plot wind vector ...
Above asked 17/8, 2020 at 13:3
3
Solved
I used MatplotLib with Cartopy to generate some data images.
The problem is that when I set the frame size to fullscreen and use plt.show() the image is perfect and the resolution is fine.
However...
Trochaic asked 4/8, 2017 at 20:50
3
Solved
Using Cartopy, I would like to have full control of where my colorbar goes. Usually I do this by getting the current axes position as basis and then create new axes for the colorbar. This works wel...
Resilience asked 4/5, 2015 at 12:33
1
Solved
I installed Christoph Gohlke's prebuilt wheel Cartopy‑0.20.2‑cp39‑cp39‑win_amd64.whl using pip in an active virtual environment. The environment is using Python 3.9.5. When trying to import Cartopy...
2
Solved
I am doing some plotting with matplotlib, and I have a legend which tells the viewer which sensors the points were recorded with. There are multiple sensors of multiple types, and I'd like to have ...
Enlarge asked 19/7, 2016 at 15:57
6
How can I show a km ruler for a zoomed in section of a map, either inset in the image or as rulers on the side of the plot?
E.g. something like the 50 km bar on the side (left) or the inset in mi ...
Webster asked 1/9, 2015 at 14:11
1
The following code generates a map of the US with a contour line for every state. The problem is that the image looks like it was generated with 1990s technology. How can I significantly improve th...
Suffrage asked 12/5, 2021 at 17:3
4
Solved
I am looking for a workaround to add x and y axis ticks and labels to a Cartopy map in Lambert projection.
The solution I have come up with is just an approximation which will yield worse results ...
Unawares asked 15/1, 2015 at 12:1
1
Solved
I am learning visualization of data in python using Cartopy
I have this code for plotting Africa's population and GDP.
def choropleth(ax, attr, cmap_name):
# We need to normalize the values before...
Hellespont asked 3/12, 2020 at 10:34
1
Solved
I am using the following code to make a map for Sweden, Norway and Finland together as one area. however, I am struggling with it. I'm following this example, Python Mapping in Matplotlib Cartopy C...
Ferbam asked 20/11, 2020 at 8:18
2
Solved
I'm coloring countries on a cartopy map according to certain values. I'm using geopandas and a shapefile from: https://www.naturalearthdata.com/
While iterating over the dataframe df to get the geo...
Chercherbourg asked 5/9, 2020 at 20:14
1
in respect to the previous examples in stackoverflow, I searched for other alternatives in order to create a scalebar.
In my research, I verified that the Basemap class from mpl_toolkits.basemap se...
Grave asked 12/8, 2020 at 22:43
1
Solved
I create a Stamen terrain map with the country border from NaturalEarth.
Now I want to remove all the data (terrain in this case) from outside the country border.
How would I do that?
My example w...
Distract asked 18/6, 2020 at 11:20
1
Solved
I'm trying to draw a map of France using Cartopy, and I'm not very comfortable with it.
Searching for Python code here and there on the Internet, I built the following program:
import cartopy
imp...
Healy asked 10/6, 2020 at 16:48
1
I want a plot with two subplots, one larger with a map and second smaller with a scatter plot. I am using cartopy for plotting map. I determine the fraction of height by using gridspec_kw. However,...
Mariomariology asked 25/4, 2020 at 23:15
1
I've been trying for a while now to plot vector field with uncertainty ellipses in Cartopy. The idea is that if I have a location (lat/lon) and a vector (wind speed, for example), but that vector h...
Amanita asked 14/3, 2020 at 1:43
1
Solved
The following code (copied from here) produces a nicely looking geodesic between NYC and New Delhi. Upon close inspection, the geodesic does not look smooth. How can I make it smooth looking?
impo...
Maley asked 14/3, 2020 at 17:5
1 Next >
© 2022 - 2025 — McMap. All rights reserved.