tutogit/tutogit.py

22 lines
310 B
Python
Raw Normal View History

2021-03-22 08:59:52 +00:00
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
N = 32
xn = np.arange(N)
plt.scatter(xn,np.sin(2.*np.pi*xn/N),c='g',s=2,marker='s')
xn = np.arange(N*10)
plt.plot(xn,np.sin(2.*np.pi*xn/N),'b')
plt.xlim(0,32)
plt.savefig('tutogit.pdf')
plt.show()