I need to plot some data in Germany with cartopy. The data part of my plot works fine (so I deleted it for now). Unfortunately, the shape of the country is deformed due to the projection. I am currently using the PlateCarree projection, but changing it to Orthographic or others created the same plot. How to improve the shape? Code:
Tag: cartopy
tricontourf breaking when contouring over 0 point in polar plot
I am trying to plot a tricontourf on a polar plot, however it seems that it glitches out when plotting over the 0 longitude point. It’s clear when plotting as a scatter plot that the points are just fine. Furthermore, when plotting the tricontourf in other locations not containing 0 longitude it works just fine. Here is the code for
Matplotlib & Cartopy – How to automatically plot data with colors depending on a categorical column?
I am trying to plot ship trajectories in Cartopy, but am unable to automatically use a column of my df to set the color groups of the data. This throws the error ‘dtype: object is not a valid value for color’. In Geopandas you can set the color groups using the ‘column’ field. Is there anything similar for Matplotlib/Cartopy? Thanks
View Alaskan/East Siberian Side of Arctic in Cartopy
I have some points plotted on a NorthPolarStero map in Cartopy using the following code But I would actually like to plot just the top half of this image, like this: If I change the “`ax.set_extent“ line to either: [90, -90, 90, 66] or [-90, 90, 90, 66] It just gives me the bottom half of the plot, like this:
Overlay/Fill country boundaries with image in
Is there a way to fill a country with an image similar to R solution using custom library here: I have a solution where the face colour is filled for instance the below where Italy is blue. However, I would like to add the Italian flag. Is there a way in Python (I have not found much after searching) or
Why do my google tiles look poor in a Cartopy map?
I am a bit puzzled by the rendering of google tiles with Cartopy. The map looks extremely poor compared to the standard google map look. Example (code from https://ocefpaf.github.io/python4oceanographers/blog/2015/06/22/osm/): Generates: Which looks very poor—look at the pixelated rendering of text label and street number—compared to the same image shown on the linked website: Changing zoom level does not seem to