stud/Karto/assignment4/draw.py

18 lines
439 B
Python
Raw Normal View History

2019-11-28 18:54:24 +02:00
#!/usr/bin/env python3
import matplotlib.pyplot as plt
from shapely.geometry import LineString
2019-11-28 19:55:27 +02:00
from measure import *
2019-11-28 18:54:24 +02:00
fig, ax = plt.subplots()
2019-11-28 19:55:27 +02:00
KA03_l = LineString([Points[i].xy for i in [11,12,13,14,15,16,17,18] ])
KA03_offset = KA03_l.parallel_offset(KA03_plotis, 'right', join_style=2)
ax.plot(*(KA03_l.xy), linewidth=1)
ax.plot(*(KA03_offset.xy), linewidth=1, dashes=[5,5])
2019-11-28 18:54:24 +02:00
ax.set_title('Užliejamų plotų brėžinys')
plt.show()