13 lines
266 B
Python
13 lines
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()
|