Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
teaching:progappchim:codes_presentation [2015/02/17 17:47] – villersd | teaching:progappchim:codes_presentation [2016/02/17 12:07] – villersd | ||
---|---|---|---|
Ligne 137: | Ligne 137: | ||
fen1.mainloop() | fen1.mainloop() | ||
fen1.destroy() | fen1.destroy() | ||
+ | </ | ||
+ | |||
+ | ==== DemoTkinter ==== | ||
+ | * télécharger ici : [[http:// | ||
+ | |||
+ | ===== Matplotlib - pylab ===== | ||
+ | |||
+ | <sxh python; title : simple_fonction.py> | ||
+ | # | ||
+ | # -*- coding: utf-8 -*- | ||
+ | # cosinusoïde amortie | ||
+ | |||
+ | from pylab import * | ||
+ | |||
+ | def my_func(t): | ||
+ | s1 = cos(2*pi*t) | ||
+ | e1 = exp(-t) | ||
+ | return s1*e1 | ||
+ | |||
+ | tvals = arange(0., 5., 0.05) | ||
+ | # | ||
+ | |||
+ | #show() | ||
+ | |||
+ | plot(tvals, my_func(tvals), | ||
+ | |||
+ | show() | ||
</ | </ | ||