From 32d689d83483b15f11d53ad466bd0c04a1344521 Mon Sep 17 00:00:00 2001 From: renald Date: Mon, 22 Mar 2021 09:59:52 +0100 Subject: [PATCH] Version initiale --- tutogit.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tutogit.py 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() + +