mypyplot2.py

Created by vef03715

Created on February 01, 2021

452 Bytes


from math import *
from matplotlib.pyplot import *

def graph():
  X1=[]
  Y1=[]
  X2=[]
  Y2=[]
  X3=[]
  Y3=[]
  for i in range(0,60):
    X1.append(i/10)
    Y1.append(sin(i/10))
    X2.append(i/10)
    Y2.append(cos(i/10))
    X3.append(1+i/10)
    Y3.append(2+cos(i/10))
  plot(X1,Y1,'blue')
  plot(X2,Y2,'red')
  for i in range(0,32,2):
    arrow(X3[i],Y3[i],X3[i],Y3[i+1])
  return

def mypyplot2():
  graph()
  grid()
  show()