From 7dddd38cce21398ab3f5484847c090f0f36bd437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Magimel?= Date: Thu, 13 Jun 2013 17:56:21 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20ellipse=20qui=20s'ajoute=20?= =?UTF-8?q?=C3=A0=20chaque=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- affichage.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/affichage.py b/affichage.py index 5e946c5..ca6d175 100644 --- a/affichage.py +++ b/affichage.py @@ -142,6 +142,17 @@ def aff_cercle_visi(lon, lat, dlon, dlat, col, fig): col : param affichage des cercles """ from params import CRD + from matplotlib.patches import Ellipse + + ## Ellipse + wi = dlat.max() + he = dlon.max() + ell = Ellipse(xy=(lon*CRD, lat*CRD), height=he*CRD, + width=wi*CRD, facecolor='none', + edgecolor='r') + ax = fig.add_subplot(111) + ax.add_patch(ell) + print(ell) s = len(dlon) lon_vis = np.zeros((2, s))