Skip to content

Spines form incomplete junctions with some projections #2184

@kerrycobb

Description

@kerrycobb

Description

When using certain projections such as cartopy.crs.AlbersEqualArea or cartopy.crs.Orthographic along with changing the extent such that some of the map is clipped, the spines at one corner do not form a connection or properly align. This is evident if you increase the line width of the spines. The image below shows the result in the affected corner which I have observed to be in both the top right corner as well as the lower left corner. The code below produced the plot this image was taken from.
Example

Code to reproduce

import matplotlib.pyplot as plt
import cartopy.crs as ccrs

fig = plt.figure()
ax = plt.axes(projection=ccrs.Orthographic(0, 0))
ax.set_extent([-10, -11, 10, 11])
ax.spines[:].set_linewidth(3)
plt.savefig("test.pdf")
Full environment definition

Operating system

macOS 11.3.1

Versions

Cartopy: 0.21.1
matplotlib: 3.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions