# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/AbudDaas/AbudDaas/blob/main/Untitled0.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + colab={"base_uri": "https://localhost:8080/", "height": 281} id="1KEIW5btoMv2" outputId="09a08d5c-afc6-48ba-bb05-e97a2ccfb378"
import matplotlib.pyplot as plt
import numpy as np

testList0 =[(3, 1), (3.5, 5), (4, 1), (3.75, 3), (3.25, 3)]
testList1 =[(0, 0), (0, 0),]
testList2 =[(0, 0), (0, 0)]

crossLine = [(5, 1),(5.5, 5), (6, 1), (6.5, 5), (7, 1)]
edge1 = [(1.5, 5), (2.5, 5), (1.5, 1), (2.5, 1)]
edge2 = [(0, 1), (0.5, 5), (1, 1), (0.75, 3), (0.25, 3), (0, 1)]

x_0 = [x[0] for x in testList0]
y_0 = [x[1] for x in testList0]

x_1 = [x[0] for x in testList1]
y_1 = [x[1] for x in testList1]

x_2 = [x[0] for x in testList2]
y_2 = [x[1] for x in testList2]

plt.scatter(x_0, y_0)
plt.scatter(x_1, y_1)
plt.scatter(x_2, y_2)

plt.plot(x_0, y_0, 'b-', label='Original') # Blue
plt.plot(x_1, y_1, 'r-', label='X-Shift') # Red
plt.plot(x_2, y_2, 'y-', label='Y-Shift') # Gren

plt.plot(*zip(*edge1), 'gx--')
plt.plot(*zip(*edge2), 'cx--')
plt.plot(*zip(*crossLine), 'rx--')
plt.plot(*zip(*testList0), 'bx--')

#plt.plot(edge2, linewidth = '5.5')
plt.title('Schematic diagram') 
plt.plot('X-satır')
plt.plot('Y-satır')
plt.legend()
plt.grid()
plt.show()





StarcoderdataJupyterScriptsDedupFiltered