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 22:34:47 +02:00
|
|
|
KA08_l = LineString([Points[i].xy for i in [1,2,3] ])
|
|
|
|
KA08_Lwidth = (L7+L8+L9)/A08_plotis
|
|
|
|
KA08_Rwidth = (L6+L5+L4)/A08_plotis
|
|
|
|
|
|
|
|
KA08_offsetR1 = KA08_l.parallel_offset(L6, 'right', join_style=2)
|
|
|
|
KA08_offsetR2 = KA08_l.parallel_offset(L6+L5, 'right', join_style=2)
|
|
|
|
KA08_offsetR3 = KA08_l.parallel_offset(L6+L5+L4, 'right', join_style=2)
|
|
|
|
KA08_offsetL1 = KA08_l.parallel_offset(L7, 'left', join_style=2)
|
|
|
|
KA08_offsetL2 = KA08_l.parallel_offset(L7+L8, 'left', join_style=2)
|
|
|
|
KA08_offsetL3 = KA08_l.parallel_offset(L7+L8+L9, 'left', join_style=2)
|
|
|
|
ax.plot(*KA08_l.xy, dashes=[5,5], zorder=KAT3)
|
|
|
|
ax.plot(*KA08_offsetR1.xy, zorder=KAT1)
|
|
|
|
ax.plot(*KA08_offsetR2.xy, dashes=[5,5], zorder=KAT1)
|
|
|
|
ax.plot(*KA08_offsetR3.xy, dashes=[5,5], zorder=KAT1)
|
|
|
|
ax.plot(*KA08_offsetL1.xy, zorder=KAT1)
|
|
|
|
ax.plot(*KA08_offsetL2.xy, dashes=[5,5], zorder=KAT1)
|
|
|
|
ax.plot(*KA08_offsetL3.xy, dashes=[5,5], zorder=KAT1)
|
|
|
|
|
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] ])
|
2019-11-28 22:34:47 +02:00
|
|
|
KA03_offsetR = KA03_l.parallel_offset(KA03_plotis, 'right', join_style=2)
|
|
|
|
ax.plot(*KA03_l.xy, zorder=KAT3)
|
|
|
|
ax.plot(*KA03_offsetR.xy, dashes=[5,5], zorder=KAT3)
|
2019-11-28 19:55:27 +02:00
|
|
|
|
2019-11-28 22:34:47 +02:00
|
|
|
KA05_l = LineString([Points[i].xy for i in [4,5,6,7,8,9,10] ])
|
|
|
|
KA05_offsetL = KA05_l.parallel_offset(L2, 'left', join_style=2)
|
|
|
|
KA05_offsetR = KA05_l.parallel_offset(L3, 'right', join_style=2)
|
|
|
|
ax.plot(*KA05_l.xy, zorder=KAT2)
|
|
|
|
ax.plot(*KA05_offsetL.xy, dashes=[5,5], zorder=KAT2)
|
|
|
|
ax.plot(*KA05_offsetR.xy, dashes=[5,5], zorder=KAT2)
|
2019-11-28 18:54:24 +02:00
|
|
|
|
|
|
|
ax.set_title('Užliejamų plotų brėžinys')
|
|
|
|
|
|
|
|
plt.show()
|