Corrige le texte qui débordait des boîtes dans les schémas, et l'en-tête des PDF

toile() laissait les marges par défaut de matplotlib : une unité valait ~0,78 cm au lieu de 1 cm, les boîtes étaient donc trop petites pour leur texte. Les axes occupent désormais toute la figure, et boite() réduit la police si le texte dépasse encore (ajuster_texte). En-tête et pied de page : grille et align() à la place de #h(1fr), neutralisé par le préambule de Quarto (titre renvoyé à la ligne, numéro de page à gauche).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Artemia
2026-10-18 16:25:29 +02:00
co-authored by Claude Opus 5.5
parent 379cd03bc5
commit 170588dc2c
34 changed files with 2133 additions and 2120 deletions
+76 -76
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="363.628346pt" height="153.011597pt" viewBox="0 0 363.628346 153.011597" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="467.943307pt" height="189.521833pt" viewBox="0 0 467.943307 189.521833" xmlns="http://www.w3.org/2000/svg" version="1.1">
<metadata>
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
@@ -20,69 +20,69 @@
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 153.011597
L 363.628346 153.011597
L 363.628346 0
L 0 0
<path d="M 0 189.521833
L 467.943307 189.521833
L 467.943307 -0
L 0 -0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 117.425197 62.869865
L 246.20315 62.869865
Q 249.477165 62.869865 249.477165 59.595849
L 249.477165 31.221046
Q 249.477165 27.94703 246.20315 27.94703
L 117.425197 27.94703
Q 114.151181 27.94703 114.151181 31.221046
L 114.151181 59.595849
Q 114.151181 62.869865 117.425197 62.869865
<path d="M 150.349606 74.605298
L 317.593701 74.605298
Q 321.845669 74.605298 321.845669 70.353329
L 321.845669 33.502936
Q 321.845669 29.250967 317.593701 29.250967
L 150.349606 29.250967
Q 146.097638 29.250967 146.097638 33.502936
L 146.097638 70.353329
Q 146.097638 74.605298 150.349606 74.605298
z
" clip-path="url(#p172e028fd0)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pe76752fa53)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_3">
<path d="M 25.752756 135.98955
L 110.877165 135.98955
Q 114.151181 135.98955 114.151181 132.715534
L 114.151181 97.792699
Q 114.151181 94.518684 110.877165 94.518684
L 25.752756 94.518684
Q 22.47874 94.518684 22.47874 97.792699
L 22.47874 132.715534
Q 22.47874 135.98955 25.752756 135.98955
<path d="M 31.294488 169.565928
L 141.845669 169.565928
Q 146.097638 169.565928 146.097638 165.313959
L 146.097638 119.959629
Q 146.097638 115.70766 141.845669 115.70766
L 31.294488 115.70766
Q 27.04252 115.70766 27.04252 119.959629
L 27.04252 165.313959
Q 27.04252 169.565928 31.294488 169.565928
z
" clip-path="url(#p172e028fd0)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pe76752fa53)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_4">
<path d="M 139.251969 135.98955
L 224.376378 135.98955
Q 227.650394 135.98955 227.650394 132.715534
L 227.650394 97.792699
Q 227.650394 94.518684 224.376378 94.518684
L 139.251969 94.518684
Q 135.977953 94.518684 135.977953 97.792699
L 135.977953 132.715534
Q 135.977953 135.98955 139.251969 135.98955
<path d="M 178.696063 169.565928
L 289.247244 169.565928
Q 293.499213 169.565928 293.499213 165.313959
L 293.499213 119.959629
Q 293.499213 115.70766 289.247244 115.70766
L 178.696063 115.70766
Q 174.444094 115.70766 174.444094 119.959629
L 174.444094 165.313959
Q 174.444094 169.565928 178.696063 169.565928
z
" clip-path="url(#p172e028fd0)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pe76752fa53)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_5">
<path d="M 252.751181 135.98955
L 337.875591 135.98955
Q 341.149606 135.98955 341.149606 132.715534
L 341.149606 97.792699
Q 341.149606 94.518684 337.875591 94.518684
L 252.751181 94.518684
Q 249.477165 94.518684 249.477165 97.792699
L 249.477165 132.715534
Q 249.477165 135.98955 252.751181 135.98955
<path d="M 326.097638 169.565928
L 436.648819 169.565928
Q 440.900787 169.565928 440.900787 165.313959
L 440.900787 119.959629
Q 440.900787 115.70766 436.648819 115.70766
L 326.097638 115.70766
Q 321.845669 115.70766 321.845669 119.959629
L 321.845669 165.313959
Q 321.845669 169.565928 326.097638 169.565928
z
" clip-path="url(#p172e028fd0)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pe76752fa53)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="text_1">
<!-- MonProjet.ino -->
<g style="fill: #1f5fa8" transform="translate(144.638744 35.5864) scale(0.095 -0.095)">
<g style="fill: #1f5fa8" transform="translate(196.796224 39.172227) scale(0.095 -0.095)">
<defs>
<path id="DejaVuSansMono-Bold-30" d="M 269 4666
L 1369 4666
@@ -291,7 +291,7 @@ z
</g>
<g id="text_2">
<!-- setup() et loop() uniquement : -->
<g style="fill: #1f2937" transform="translate(122.714548 49.301889) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(174.872029 57.77748) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-56" d="M 2834 3397
L 2834 2853
@@ -607,7 +607,7 @@ z
<use xlink:href="#DejaVuSans-1d" transform="translate(1481.6875 0)"/>
</g>
<!-- orchestrent les appels -->
<g style="fill: #1f2937" transform="translate(138.56622 58.664022) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(190.7237 67.139612) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-55" d="M 2631 2963
Q 2534 3019 2420 3045
@@ -726,7 +726,7 @@ z
</g>
<g id="text_3">
<!-- capteurs.ino -->
<g style="fill: #2e8b57" transform="translate(35.805273 103.249392) scale(0.09 -0.09)">
<g style="fill: #2e8b57" transform="translate(54.060391 127.046243) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSansMono-Bold-46" d="M 3316 178
Q 3084 44 2818 -23
@@ -875,7 +875,7 @@ z
</g>
<g id="text_4">
<!-- lireTemperature() -->
<g style="fill: #1f2937" transform="translate(28.400289 119.147558) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(46.655407 148.486141) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSansMono-4f" d="M 1997 1269
Q 1997 881 2139 684
@@ -1143,7 +1143,7 @@ z
<use xlink:href="#DejaVuSansMono-c" transform="translate(963.25 0)"/>
</g>
<!-- lireHumidite() -->
<g style="fill: #1f2937" transform="translate(35.444054 128.551129) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(53.699172 157.889711) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSansMono-2b" d="M 428 4666
L 1063 4666
@@ -1204,18 +1204,18 @@ z
</g>
</g>
<g id="patch_6">
<path d="M 153.43937 62.869865
Q 110.877165 78.694274 69.677293 94.012175
<path d="M 197.12126 74.605298
Q 141.845669 95.156479 87.932411 115.201152
" style="fill: none; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 74.568145 94.540916
L 69.677293 94.012175
L 73.034797 90.416738
<path d="M 92.823263 115.729893
L 87.932411 115.201152
L 91.289915 111.605715
z
" style="fill: #2e8b57; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_5">
<!-- affichage.ino -->
<g style="fill: #e07a1f" transform="translate(146.595345 103.249392) scale(0.09 -0.09)">
<g style="fill: #e07a1f" transform="translate(198.752825 127.046243) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSansMono-Bold-49" d="M 2309 3806
L 2309 3500
@@ -1309,7 +1309,7 @@ z
</g>
<g id="text_6">
<!-- afficherEcran() -->
<g style="fill: #1f2937" transform="translate(146.595345 119.147558) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(198.752825 148.486141) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSansMono-49" d="M 3322 4863
L 3322 4384
@@ -1424,7 +1424,7 @@ z
<use xlink:href="#DejaVuSansMono-c" transform="translate(842.84375 0)"/>
</g>
<!-- afficherLed() -->
<g style="fill: #1f2937" transform="translate(151.291189 128.509691) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(203.448669 157.848274) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSansMono-2f" d="M 672 4666
L 1306 4666
@@ -1452,18 +1452,18 @@ z
</g>
</g>
<g id="patch_7">
<path d="M 181.814173 62.869865
Q 181.814173 78.694274 181.814173 93.065239
<path d="M 233.971654 74.605298
Q 233.971654 95.156479 233.971654 114.254216
" style="fill: none; stroke: #e07a1f; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 184.014173 88.665239
L 181.814173 93.065239
L 179.614173 88.665239
<path d="M 236.171654 109.854216
L 233.971654 114.254216
L 231.771654 109.854216
z
" style="fill: #e07a1f; stroke: #e07a1f; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_7">
<!-- reseau.ino -->
<g style="fill: #6b7280" transform="translate(268.22198 103.249392) scale(0.09 -0.09)">
<g style="fill: #6b7280" transform="translate(354.281822 127.046243) scale(0.09 -0.09)">
<use xlink:href="#DejaVuSansMono-Bold-55"/>
<use xlink:href="#DejaVuSansMono-Bold-48" transform="translate(60.203125 0)"/>
<use xlink:href="#DejaVuSansMono-Bold-56" transform="translate(120.40625 0)"/>
@@ -1478,7 +1478,7 @@ z
</g>
<g id="text_8">
<!-- connecterWiFi() -->
<g style="fill: #1f2937" transform="translate(260.094558 119.12684) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(346.1544 148.465422) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSansMono-52" d="M 1925 3097
Q 1488 3097 1263 2756
@@ -1548,7 +1548,7 @@ z
<use xlink:href="#DejaVuSansMono-c" transform="translate(842.84375 0)"/>
</g>
<!-- publierMQTT() -->
<g style="fill: #1f2937" transform="translate(264.790401 128.53041) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(350.850244 157.868993) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSansMono-45" d="M 2869 1747
Q 2869 2416 2656 2756
@@ -1635,18 +1635,18 @@ z
</g>
</g>
<g id="patch_8">
<path d="M 210.188976 62.869865
Q 252.751181 78.694274 293.951053 94.012175
<path d="M 270.822047 74.605298
Q 326.097638 95.156479 380.010896 115.201152
" style="fill: none; stroke: #6b7280; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 290.59355 90.416738
L 293.951053 94.012175
L 289.060201 94.540916
<path d="M 376.653392 111.605715
L 380.010896 115.201152
L 375.120044 115.729893
z
" style="fill: #6b7280; stroke: #6b7280; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_9">
<!-- une fonction = -->
<g style="fill: #6b7280" transform="translate(294.191867 13.907543) scale(0.078 -0.078)">
<g style="fill: #6b7280" transform="translate(397.202891 13.907543) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-Oblique-58" d="M 428 1388
L 838 3500
@@ -1868,7 +1868,7 @@ z
<use xlink:href="#DejaVuSans-Oblique-20" transform="translate(658.140625 0)"/>
</g>
<!-- une responsabilité -->
<g style="fill: #6b7280" transform="translate(280.008055 23.581676) scale(0.078 -0.078)">
<g style="fill: #6b7280" transform="translate(383.019078 23.581676) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-Oblique-55" d="M 2853 2969
Q 2766 3016 2653 3041
@@ -2088,8 +2088,8 @@ z
</g>
</g>
<defs>
<clipPath id="p172e028fd0">
<rect x="7.2" y="14.850967" width="349.228346" height="130.96063"/>
<clipPath id="pe76752fa53">
<rect x="7.2" y="12.243093" width="453.543307" height="170.07874"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB