You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
262 B

import matplotlib.pyplot as plt
frequence = 14
hauteur = 0.2
n = frequence * 2 + 1
plt.figure()
X=[i/frequence for i in range(n)]
Y=[hauteur if (i % 2) == 1 else 0 for i in range(n)]
plt.plot(X,Y,color='blue')
plt.axis('equal')
plt.title('Zigzag')
plt.show()