grains.cad.plot_polygons¶
-
grains.cad.plot_polygons(polygons, **kwargs)[source]¶ Plots polygons.
- Parameters
polygons (list) – Each member of the list is a 2D numpy array with 2 columns, each row corresponding to a vertex of the polygon, and the two columns giving the Cartesian coordinates of the vertices.
- Other Parameters
kwargs (optional) – Keyword arguments supported by the constructor of the
matplotlib.figure.Figureclass.- Returns
fig (matplotlib.figure.Figure) – Figure the polygons are plotted into.
See also