VoronoiGrowthSimulator
Based on Site Saturated Nucleation and Isotropic Growth
Loading...
Searching...
No Matches
showvoronoi.py
Go to the documentation of this file.
1
import
numpy
as
np
2
from
numpy
import
genfromtxt
3
from
matplotlib
import
pyplot
as
plt
4
5
6
def
show_voronoi
():
7
"""
8
Load and display a Voronoi diagram from a CSV file.
9
10
The CSV file should contain the Voronoi diagram data, where each cell represents a region
11
and its value represents a property of that region.
12
13
Returns:
14
None
15
"""
16
I = genfromtxt(
'Voronoi.csv'
, delimiter=
','
)
17
J = I/np.max(I)
18
plt.imshow(J)
19
plt.show()
20
21
show_voronoi
()
showvoronoi.show_voronoi
show_voronoi()
Definition
showvoronoi.py:6
showvoronoi.py
Generated on Thu Jun 6 2024 14:50:28 for VoronoiGrowthSimulator by
1.10.0