À 10h30 je m'en vais pythoner.
- 1
import matplotlib.pyplot as plt
import numpy as np
x=np.arange[0,np.pi,0.1]
plt.plot(t, np.sin(t), 'r', t, np.cos(t),'b')
plt.axis([-(np.pi)*2,(np.pi)*2, -(np.pi)*2, (np.pi)*2])
plt.xlabel('x')
plt.ylabel('f(x)')
plt.title('fonctions sinus et cosinus')
plt.text(2,2,'sinus(x)', color='red')
plt.text(5,2,'cosinus(x)', color='blue')
plt.show()
import matplotlib.pyplot as plt
import numpy as np
fig, (ax1, ax2)=plt.subplots(2,1)
x=np.linspace[0,np.pi,100]
#graphique du haut : fonction sinus
ax1.set_title('fonction sinus')
ax1.set_xlabel('x')
ax2.set_ylabel('sinus(x)')
ax2.plot(x,np.sin(x), 'b')
#graphique du bas : fonction cosinus
ax2.set_title('fonction cosinus')
ax2.set_xlabel('x')
ax2.set_ylabel('fonction cosinus')
ax2.plot(x,np.cos(x),'r')
fig.tight_layout()
plt.show()
import matplotlib.pyplot as plt
> import numpy as np
>
> fig, (ax1, ax2)=plt.subplots(2,1)
>
> x=np.linspace[0,np.pi,100]
>
> #graphique du haut : fonction sinus
> ax1.set_title('fonction sinus')
> ax1.set_xlabel('x')
> ax2.set_ylabel('sinus(x)')
> ax2.plot(x,np.sin(x), 'b')
>
> #graphique du bas : fonction cosinus
> ax2.set_title('fonction cosinus')
> ax2.set_xlabel('x')
> ax2.set_ylabel('fonction cosinus')
> ax2.plot(x,np.cos(x),'r')
>
> fig.tight_layout()
>
> plt.show()
>
>
Il y avait quelques petites erreurs...x=np.linspace[0,np.pi,100]
❌
x=np.linspace(0,10,100)
✔️
Et j'ai mis des ax2 au lieu de ax1 dans le codage du premier graphique...
Le 01 décembre 2023 à 10:35:36 :
Le 01 décembre 2023 à 10:19:47 :
D'autres Jean Programmation? Après pour moi ce n'est qu'une UE 🤍 ...Ce n'est pas très intéressant, mais ça permet de réviser dans le lit le PC sur les genoux, et on peut créer des petits jeux interactifs et apprendre en même temps 🤍 ...
https://www.jeuxvideo.com/forums/42-51-73431520-1-0-1-0-je-suis-partie-chercher-mon-colis-chez-le-salon-de-barbier-arabe-j-en-suis-ressortie-avec-l-amour.htm
Je boucle avec cette connerie depuis avant-hier, tu peux enfin poster stp 🤍 ...
Le 01 décembre 2023 à 10:40:46 :
Le 01 décembre 2023 à 10:35:36 :
Le 01 décembre 2023 à 10:19:47 :
D'autres Jean Programmation? Après pour moi ce n'est qu'une UE 🤍 ...Ce n'est pas très intéressant, mais ça permet de réviser dans le lit le PC sur les genoux, et on peut créer des petits jeux interactifs et apprendre en même temps 🤍 ...
https://www.jeuxvideo.com/forums/42-51-73431520-1-0-1-0-je-suis-partie-chercher-mon-colis-chez-le-salon-de-barbier-arabe-j-en-suis-ressortie-avec-l-amour.htm
Je boucle avec cette connerie depuis avant-hier, tu peux enfin poster stp 🤍 ...
Le 01 décembre 2023 à 10:43:46 :
Le 01 décembre 2023 à 10:40:46 :
Le 01 décembre 2023 à 10:35:36 :
Le 01 décembre 2023 à 10:19:47 :
D'autres Jean Programmation? Après pour moi ce n'est qu'une UE 🤍 ...Ce n'est pas très intéressant, mais ça permet de réviser dans le lit le PC sur les genoux, et on peut créer des petits jeux interactifs et apprendre en même temps 🤍 ...
https://www.jeuxvideo.com/forums/42-51-73431520-1-0-1-0-je-suis-partie-chercher-mon-colis-chez-le-salon-de-barbier-arabe-j-en-suis-ressortie-avec-l-amour.htm
Je boucle avec cette connerie depuis avant-hier, tu peux enfin poster stp 🤍 ...
Le 01 décembre 2023 à 10:45:20 :
Le 01 décembre 2023 à 10:43:46 :
Le 01 décembre 2023 à 10:40:46 :
Le 01 décembre 2023 à 10:35:36 :
Le 01 décembre 2023 à 10:19:47 :
D'autres Jean Programmation? Après pour moi ce n'est qu'une UE 🤍 ...Ce n'est pas très intéressant, mais ça permet de réviser dans le lit le PC sur les genoux, et on peut créer des petits jeux interactifs et apprendre en même temps 🤍 ...
https://www.jeuxvideo.com/forums/42-51-73431520-1-0-1-0-je-suis-partie-chercher-mon-colis-chez-le-salon-de-barbier-arabe-j-en-suis-ressortie-avec-l-amour.htm
Je boucle avec cette connerie depuis avant-hier, tu peux enfin poster stp 🤍 ...
Le 01 décembre 2023 à 10:47:07 :
Le 01 décembre 2023 à 10:45:20 :
Le 01 décembre 2023 à 10:43:46 :
Le 01 décembre 2023 à 10:40:46 :
Le 01 décembre 2023 à 10:35:36 :
> Le 01 décembre 2023 à 10:19:47 :
>D'autres Jean Programmation? Après pour moi ce n'est qu'une UE 🤍 ...
>
> Ce n'est pas très intéressant, mais ça permet de réviser dans le lit le PC sur les genoux, et on peut créer des petits jeux interactifs et apprendre en même temps 🤍 ...
https://www.jeuxvideo.com/forums/42-51-73431520-1-0-1-0-je-suis-partie-chercher-mon-colis-chez-le-salon-de-barbier-arabe-j-en-suis-ressortie-avec-l-amour.htm
Je boucle avec cette connerie depuis avant-hier, tu peux enfin poster stp 🤍 ...
Le 01 décembre 2023 à 10:50:39 :
Le 01 décembre 2023 à 10:47:07 :
Le 01 décembre 2023 à 10:45:20 :
Le 01 décembre 2023 à 10:43:46 :
Le 01 décembre 2023 à 10:40:46 :
> Le 01 décembre 2023 à 10:35:36 :
>> Le 01 décembre 2023 à 10:19:47 :
> >D'autres Jean Programmation? Après pour moi ce n'est qu'une UE 🤍 ...
> >
> > Ce n'est pas très intéressant, mais ça permet de réviser dans le lit le PC sur les genoux, et on peut créer des petits jeux interactifs et apprendre en même temps 🤍 ...
>
>
https://www.jeuxvideo.com/forums/42-51-73431520-1-0-1-0-je-suis-partie-chercher-mon-colis-chez-le-salon-de-barbier-arabe-j-en-suis-ressortie-avec-l-amour.htm
Je boucle avec cette connerie depuis avant-hier, tu peux enfin poster stp 🤍 ...
> > >D'autres Jean Programmation? Après pour moi ce n'est qu'une UE 🤍 ...
> > >
> > > Ce n'est pas très intéressant, mais ça permet de réviser dans le lit le PC sur les genoux, et on peut créer des petits jeux interactifs et apprendre en même temps 🤍 ...
> >
> >
>
> Je boucle avec cette connerie depuis avant-hier, tu peux enfin poster stp 🤍 ...
- 1
Données du topic
- Auteur
- Adornare
- Date de création
- 1 décembre 2023 à 10:19:47
- Nb. messages archivés
- 15
- Nb. messages JVC
- 15