VoronoiGrowthSimulator
Based on Site Saturated Nucleation and Isotropic Growth
Loading...
Searching...
No Matches
showvoronoi Namespace Reference

Functions

 show_voronoi ()
 

Function Documentation

◆ show_voronoi()

showvoronoi.show_voronoi ( )
Load and display a Voronoi diagram from a CSV file.

The CSV file should contain the Voronoi diagram data, where each cell represents a region
and its value represents a property of that region.

Returns:
    None

Definition at line 6 of file showvoronoi.py.

6def 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
Here is the call graph for this function:
Here is the caller graph for this function: