﻿{"id":14235,"date":"2025-07-03T10:29:03","date_gmt":"2025-07-03T08:29:03","guid":{"rendered":"https:\/\/www.sigterritoires.fr\/?p=14235"},"modified":"2025-07-03T10:29:06","modified_gmt":"2025-07-03T08:29:06","slug":"generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/","title":{"rendered":"G\u00e9n\u00e9rer un rapport automatique avec QGIS et Data Plotly : int\u00e9grer des graphiques dans un atlas PDF"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Apr\u00e8s avoir vu comment cr\u00e9er et exporter une s\u00e9rie de graphiques avec <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/visualiser-vos-donnees-sig-dans-qgis-avec-le-plugin-data-plotly\/\">Data Plotly<\/a>, passons \u00e0 l\u2019\u00e9tape suivante : <strong>int\u00e9grer ces graphiques dans un atlas QGIS ou un rapport automatis\u00e9<\/strong>. Cette m\u00e9thode permet de produire <strong>des rapports PDF personnalis\u00e9s<\/strong> ou des <strong>fiches th\u00e9matiques<\/strong>, une par plage, commune, site ou entit\u00e9.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contenu <\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Objectif\" >Objectif<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Exemple_de_cas_dusage\" >Exemple de cas d\u2019usage<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Etape_1_preparer_les_graphiques_par_plage\" >\u00c9tape 1 : pr\u00e9parer les graphiques par plage<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Etape_2_creer_la_mise_en_page_dans_le_Composeur_de_mise_en_page\" >\u00c9tape 2 : cr\u00e9er la mise en page dans le Composeur de mise en page<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Etape_3_inserer_dynamiquement_les_graphiques_PNG\" >\u00c9tape 3 : ins\u00e9rer dynamiquement les graphiques PNG<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Etape_4_exporter_latlas\" >\u00c9tape 4 : exporter l\u2019atlas<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Bonus_ajouter_des_statistiques_dynamiques\" >Bonus : ajouter des statistiques dynamiques<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#En_resume\" >En r\u00e9sum\u00e9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#Idees_de_cas_dusage\" >Id\u00e9es de cas d\u2019usage<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/#A_venir%E2%80%A6\" >\u00c0 venir\u2026<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Objectif\"><\/span>Objectif<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cr\u00e9er un <strong>rapport PDF dynamique<\/strong> par entit\u00e9 (ex. : une fiche par plage) ;<\/li>\n\n\n\n<li>Ins\u00e9rer les <strong>graphiques g\u00e9n\u00e9r\u00e9s avec Data Plotly<\/strong> dans chaque page de l\u2019atlas ;<\/li>\n\n\n\n<li>Utiliser les <strong>fonctions d\u2019Atlas<\/strong> de QGIS et un peu d\u2019automatisation.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exemple_de_cas_dusage\"><\/span>Exemple de cas d\u2019usage<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Vous disposez d\u2019une couche <code>releves_dechets<\/code> et d\u2019une couche <code>plages<\/code> (ou <code>communes<\/code>). Vous souhaitez cr\u00e9er un <strong>rapport par plage<\/strong> contenant :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Le <strong>nom de la plage<\/strong><\/li>\n\n\n\n<li>Une <strong>carte<\/strong> zoom\u00e9e sur la zone<\/li>\n\n\n\n<li>Un <strong>graphique PNG<\/strong> repr\u00e9sentant les d\u00e9chets collect\u00e9s (cr\u00e9\u00e9 avec Data Plotly)<\/li>\n\n\n\n<li>Quelques <strong>statistiques dynamiques<\/strong> (somme, moyenne\u2026)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Etape_1_preparer_les_graphiques_par_plage\"><\/span>\u00c9tape 1 : pr\u00e9parer les graphiques par plage<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Reprenez le script Python vu pr\u00e9c\u00e9demment pour g\u00e9n\u00e9rer une image PNG par plage :<br><code>graph_Anse_Mourouk.png<\/code>, <code>graph_Pointe_Coton.png<\/code>, etc.<\/p>\n\n\n\n<p>Assurez-vous que le nom de l\u2019image correspond exactement \u00e0 la valeur du champ <code>plage<\/code> dans la couche principale.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Etape_2_creer_la_mise_en_page_dans_le_Composeur_de_mise_en_page\"><\/span>\u00c9tape 2 : cr\u00e9er la mise en page dans le <strong>Composeur de mise en page<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Allez dans <strong>Projet &gt; Mise en page &gt; Nouvelle mise en page<\/strong><\/li>\n\n\n\n<li>Ajoutez :\n<ul class=\"wp-block-list\">\n<li>Un cadre <strong>carte<\/strong> (li\u00e9 \u00e0 la couche de plages)<\/li>\n\n\n\n<li>Un champ <strong>texte dynamique<\/strong> (ex. : <code>[% \"plage\" %]<\/code>)<\/li>\n\n\n\n<li>Un <strong>cadre d\u2019image<\/strong> : cliquez sur l\u2019ic\u00f4ne \u00ab\u00a0Ajouter une image\u00a0\u00bb<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Activez l&rsquo;<strong>Atlas<\/strong> :\n<ul class=\"wp-block-list\">\n<li><strong>Objet de couverture<\/strong> = la couche (ex. <code>plages<\/code>)<\/li>\n\n\n\n<li><strong>Tri<\/strong> (optionnel) : tu peux choisir un champ pour l&rsquo;ordre des pages (ex. <code>nom<\/code>)<\/li>\n\n\n\n<li><strong>Filtrer les entit\u00e9s avec une expression<\/strong> (optionnel)<\/li>\n\n\n\n<li><strong>Zoom automatique sur l&rsquo;entit\u00e9<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Cliquez sur ta <strong>carte principale<\/strong> dans la mise en page (la carte \u00e0 centrer automatiquement)<\/li>\n\n\n\n<li>Dans le panneau <strong>Propri\u00e9t\u00e9s de l\u2019objet<\/strong>, section <strong>Attributs de l\u2019Atlas<\/strong>, cochez :\n<ul class=\"wp-block-list\">\n<li>\u2705 <strong>Contr\u00f4l\u00e9 par l&rsquo;atlas<\/strong><\/li>\n\n\n\n<li>\u2705 <strong>Ajuster \u00e0 l&rsquo;entit\u00e9<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"382\" data-attachment-id=\"14285\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/composeur_plotly\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?fit=1680%2C1002&amp;ssl=1\" data-orig-size=\"1680,1002\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"composeur_plotly\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?fit=640%2C382&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?resize=640%2C382&#038;ssl=1\" alt=\"\" class=\"wp-image-14285\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?resize=1024%2C611&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?resize=300%2C179&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?resize=768%2C458&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?resize=1536%2C916&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?w=1680&amp;ssl=1 1680w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly.jpg?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Etape_3_inserer_dynamiquement_les_graphiques_PNG\"><\/span>\u00c9tape 3 : ins\u00e9rer dynamiquement les graphiques PNG<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Dans le cadre d\u2019image, cochez <strong>\u201cChemin de l\u2019image \u00e0 partir de donn\u00e9es\u201d<\/strong><br>Puis entrez une expression comme :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'file:\/\/\/C:\/temp\/export_graphiques\/graph_' || \"plage\" || '.png'\n<\/code><\/pre>\n\n\n\n<p>Cela affichera automatiquement l\u2019image correspondant \u00e0 chaque entit\u00e9.<\/p>\n\n\n\n<p>Astuce : vous pouvez utiliser <code>replace(\"plage\", ' ', '_')<\/code> si les noms de fichiers n\u2019ont pas d\u2019espaces.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"341\" data-attachment-id=\"14286\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/composeur_plotly_expression\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?fit=1633%2C870&amp;ssl=1\" data-orig-size=\"1633,870\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"composeur_plotly_expression\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?fit=640%2C341&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?resize=640%2C341&#038;ssl=1\" alt=\"\" class=\"wp-image-14286\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?resize=1024%2C546&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?resize=768%2C409&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?resize=1536%2C818&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?w=1633&amp;ssl=1 1633w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_expression.jpg?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"431\" data-attachment-id=\"14287\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/generer-un-rapport-automatique-avec-qgis-et-data-plotly-integrer-des-graphiques-dans-un-atlas-pdf\/composeur_plotly_graphique\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?fit=1271%2C855&amp;ssl=1\" data-orig-size=\"1271,855\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"composeur_plotly_graphique\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?fit=640%2C431&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?resize=640%2C431&#038;ssl=1\" alt=\"\" class=\"wp-image-14287\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?resize=1024%2C689&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?resize=300%2C202&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?resize=768%2C517&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/06\/composeur_plotly_graphique.jpg?w=1271&amp;ssl=1 1271w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Etape_4_exporter_latlas\"><\/span>\u00c9tape 4 : exporter l\u2019atlas<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cliquez sur <strong>\u201cExporter Atlas en PDF\u201d<\/strong> ;<\/li>\n\n\n\n<li>Choisissez un dossier de sortie ;<\/li>\n\n\n\n<li>Chaque page contiendra : <strong>la carte, le nom de la plage, le graphique, et les infos associ\u00e9es<\/strong>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Bonus_ajouter_des_statistiques_dynamiques\"><\/span>Bonus : ajouter des statistiques dynamiques<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Ajoutez des champs texte avec des <strong>expressions QGIS<\/strong> comme :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aggregate('releves_dechets', 'sum', \"quantite\", filter := \"plage\" = attribute(@atlas_feature, 'plage'))\n<\/code><\/pre>\n\n\n\n<p>Cela permet d\u2019avoir des <strong>totaux ou moyennes automatiques<\/strong> pour chaque fiche.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"En_resume\"><\/span>En r\u00e9sum\u00e9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u00c9tape<\/th><th>Fonction<\/th><\/tr><\/thead><tbody><tr><td>G\u00e9n\u00e9ration de graphiques<\/td><td>Avec Data Plotly + Python<\/td><\/tr><tr><td>Mise en page personnalis\u00e9e<\/td><td>Composeur QGIS<\/td><\/tr><tr><td>Insertion automatique<\/td><td>Champs dynamiques + chemin vers PNG<\/td><\/tr><tr><td>Export PDF multi-pages<\/td><td>Fonction Atlas<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Idees_de_cas_dusage\"><\/span>Id\u00e9es de cas d\u2019usage<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fiches d&rsquo;observation par commune (faune, flore, d\u00e9chets)<\/li>\n\n\n\n<li>Rapports environnementaux par site<\/li>\n\n\n\n<li>Cartes + graphiques de recensement<\/li>\n\n\n\n<li>Suivi de chantiers ou de projets<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"A_venir%E2%80%A6\"><\/span>\u00c0 venir\u2026<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Dans le prochain article, nous irons plus loin en montrant <strong>comment cr\u00e9er un tableau de bord dynamique dans QGIS lui-m\u00eame<\/strong>, sans quitter l\u2019environnement SIG : combiner Data Plotly, expressions, widgets et panneaux pour construire une interface d\u2019analyse <strong>temps r\u00e9el<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apr\u00e8s avoir vu comment cr\u00e9er et exporter une s\u00e9rie de graphiques avec Data Plotly, passons \u00e0 l\u2019\u00e9tape suivante : int\u00e9grer ces graphiques dans un atlas QGIS ou un rapport automatis\u00e9. Cette m\u00e9thode permet de produire des&hellip;<\/p>\n","protected":false},"author":1,"featured_media":14506,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1945,62],"tags":[3496,3364,3346,153,58],"class_list":["post-14235","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pluigin","category-qgis-2","tag-atlas","tag-data-plotly","tag-graphiques","tag-pdf","tag-qgis"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2025\/07\/composeur_plotly_expression.jpg?fit=1633%2C870&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-3HB","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/14235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=14235"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/14235\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media\/14506"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=14235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=14235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=14235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}