VoronoiGrowthSimulator
Based on Site Saturated Nucleation and Isotropic Growth
Loading...
Searching...
No Matches
C:/Users/harshn/Desktop/VoronoiGrowthSimulator/showvoronoi.py
Go to the documentation of this file.
1import numpy as np
2from numpy import genfromtxt
3from matplotlib import pyplot as plt
4
5
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
21show_voronoi()