Compare commits
2 commits
8de91933c5
...
b9fd32310e
Author | SHA1 | Date | |
---|---|---|---|
F. Y. H. | b9fd32310e | ||
F. Y. H. | f6c18af3ab |
|
@ -104,4 +104,4 @@ for t in range(31):
|
||||||
ttr="Itération :{:d}".format(t)
|
ttr="Itération :{:d}".format(t)
|
||||||
ttr+="\nDensité : {:03.1f}%".format(M.sum()*100/M.size)
|
ttr+="\nDensité : {:03.1f}%".format(M.sum()*100/M.size)
|
||||||
title(ttr)
|
title(ttr)
|
||||||
pause(0.99)
|
pause(0.99)
|
||||||
|
|
|
@ -13,4 +13,5 @@ for x in range(1,1000):
|
||||||
image[x][:]=sin(x*2*pi/100)*ones([1000])
|
image[x][:]=sin(x*2*pi/100)*ones([1000])
|
||||||
plt.figure()
|
plt.figure()
|
||||||
plt.imshow(image,cmap='gray')
|
plt.imshow(image,cmap='gray')
|
||||||
plt.title("Sinusoïde de NdG")
|
plt.title("Sinusoïde de NdG")
|
||||||
|
plt.pause(1.00)
|
||||||
|
|
4
MatPlotLib/matplotlibrc
Normal file
4
MatPlotLib/matplotlibrc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
## MatPlotLib RC
|
||||||
|
backend: gtk3cairo
|
||||||
|
backend_fallback: True
|
||||||
|
savefig.format: pdf
|
12
MatPlotLib/requirements.txt
Normal file
12
MatPlotLib/requirements.txt
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
cycler==0.11.0
|
||||||
|
fonttools==4.34.4
|
||||||
|
kiwisolver==1.4.4
|
||||||
|
matplotlib==3.5.2
|
||||||
|
numpy==1.23.1
|
||||||
|
packaging==21.3
|
||||||
|
Pillow==9.2.0
|
||||||
|
pycairo==1.21.0
|
||||||
|
PyGObject==3.42.2
|
||||||
|
pyparsing==3.0.9
|
||||||
|
python-dateutil==2.8.2
|
||||||
|
six==1.16.0
|
|
@ -20,3 +20,10 @@ Pour quitter l’environement:
|
||||||
#Shell POSIX
|
#Shell POSIX
|
||||||
deactivate
|
deactivate
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Dans le cas de `MatPlotLib/` une installation des paquets DEB `libgirepository1.0-dev`, `gcc`,
|
||||||
|
`libcairo2-dev`, `pkg-config`, `python3-dev` et `gir1.2-gtk-3.0` peut être nécessaire[1].
|
||||||
|
La commande `pip3` vient après.
|
||||||
|
Ainsi *MatPlotLib* peut afficher ses graphes via *GTK+3*.
|
||||||
|
|
||||||
|
[1]: <https://pygobject.readthedocs.io/en/latest/getting_started.html> "PyGObject Doc."
|
||||||
|
|
Loading…
Reference in a new issue