commit 32d689d83483b15f11d53ad466bd0c04a1344521 Author: renald Date: Mon Mar 22 09:59:52 2021 +0100 Version initiale diff --git a/tutogit.py b/tutogit.py new file mode 100644 index 0000000..60d53af --- /dev/null +++ b/tutogit.py @@ -0,0 +1,21 @@ +# -*- 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() + +