[Ex1 - Q3] Modification du graph

Co-authored-by: Dimitrijevic <hugo.dimitrijevic@etu.u-pec.fr>
This commit is contained in:
Lyanis SOUIDI 2023-05-18 18:03:54 +02:00
parent 349e35266a
commit 9501d51450
Signed by: Lyanis SOUIDI
GPG Key ID: 251ADD56CFE6A854
3 changed files with 5 additions and 1 deletions

View File

@ -78,4 +78,4 @@ densiteOceanie = populationOceanie / surfaceOceanie;
bar([densiteAfrique, densiteAmeriqueDuNord, densiteAmeriqueDuSud, densiteAsie, densiteEurope, densiteOceanie]);
```
**Résultat :**
![Diagramme en bâtons](resources/img/ex1-3.png)
![Densité de population par continent](resources/img/ex1-3.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -8,3 +8,7 @@ densiteEurope = sum(data(151:193, 3)* 1000000) / sum(data(151:193, 2)* 1000);
densiteOceanie = sum(data(194:207, 3)* 1000000) / sum(data(194:207, 2)* 1000);
bar([densiteAfrique, densiteAmeriqueDuNord, densiteAmeriqueDuSud, densiteAsie, densiteEurope, densiteOceanie]);
title("Densité de population par continent");
xlabel("Continent");
ylabel("Densité (habitants/km²)");
xs2png(0,"resources/img/ex1-3.png");