6.3.3. pyafv.FiniteVoronoiSimulator.plot_2d

FiniteVoronoiSimulator.plot_2d(ax=None, show=False)[source]

Build the finite-Voronoi structure and render a 2D snapshot.

Basically a wrapper of _build_voronoi_with_extensions() and _per_cell_geometry() functions + plot.

Parameters:
  • ax (Axes | None) – If provided, draw into this axes; otherwise get the current axes.

  • show (bool) – Whether to call plt.show() at the end.

Returns:

The matplotlib axes containing the plot.

Return type:

Axes