plot_geometry#
- zeroheliumkit.src.plotting.plot_geometry(geometry, ax=None, show_idx=False, color=None, edgecolor='#000000', alpha=1, show_line_idx=False, add_points=False, **kwargs) None[source]#
Plots a geometry object on the given axes.
- Parameters:
geometry (Polygon | MultiPolygon) – The geometry object to be plotted.
ax (plt.Axes, optional) – The axes object on which to plot the geometry. If None, a default axes object will be used.
show_idx (bool, optional) – Whether to show the index of the geometry object.
color (str, optional) – The color of the geometry object.
edgecolor (str, optional) – The edge color of the geometry object.
alpha – The transparency of the geometry object.
**kwargs – Additional keyword arguments to be passed to the plotting functions.