pyskyline/test/test_terrain.py

13 lines
266 B
Python
Raw Normal View History

2024-07-17 13:39:13 +02:00
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()