# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: 'Python 3.6.10 64-bit (''eva'': conda)'
#     name: python361064bitevaconda4865876896c141e6b904fd1bbc506a5c
# ---

# +
import numpy as np
import matplotlib.pyplot as plt

# %matplotlib inline

# +
max_ = 1
min_ = 0

cycle = 3
step_size = 100 

x = []
y = []

for i in range(0,cycle*2+1):
  if i==0:
    x.append(min_)  
  else:
    x.append(x[-1] + step_size)

  if i%2==0:
    y.append(min_)
  else:
    y.append(max_)

# +
for i in range(0, len(x)):
    plt.plot(x[i:i+2], y[i:i+2], 'ro-')

plt.axis("off")
plt.savefig("./zigzag_curve.png")
plt.show()
# -



StarcoderdataJupyterScriptsDedupFiltered