cartopy.mpl.patch.path_segments#
- cartopy.mpl.patch.path_segments(path, **kwargs)[source]#
Create an array of vertices and a corresponding array of codes from a
matplotlib.path.Path.Deprecated since version 0.25.
- Parameters:
path – A
matplotlib.path.Pathinstance.kwargs – See
matplotlib.path.Path.iter_segmentsfor details of the keyword arguments.
- Returns:
vertices, codes – A (vertices, codes) tuple, where vertices is a numpy array of coordinates, and codes is a numpy array of matplotlib path codes. See
matplotlib.path.Pathfor information on the types of codes and their meanings.