pyskyline/test/test_terrain.py
2024-07-17 13:39:13 +02:00

13 lines
No EOL
266 B
Python

import matplotlib.pyplot as plt
import numpy as np
import pyskyline
terrain = pyskyline.Terrain.generate()
h = terrain.compute_skyline(330,330,360)
plt.figure()
plt.imshow(terrain.elevation_map)
plt.figure()
plt.plot(np.arange(0,360,360/h.shape[0]), h)
plt.show()