diff --git a/README.md b/README.md index 374b26f..c903ca3 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +![Densité de population par continent](resources/img/ex1-3.png) \ No newline at end of file diff --git a/resources/img/ex1-3.png b/resources/img/ex1-3.png index 6d8cfab..8f4b4c8 100644 Binary files a/resources/img/ex1-3.png and b/resources/img/ex1-3.png differ diff --git a/resources/scripts/ex1-3.sce b/resources/scripts/ex1-3.sce index 60af252..3189475 100644 --- a/resources/scripts/ex1-3.sce +++ b/resources/scripts/ex1-3.sce @@ -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");