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
+98 -98
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="158.456693pt" viewBox="0 0 363.628346 158.456693" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="467.943307pt" height="201.486614pt" viewBox="0 0 467.943307 201.486614" 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 158.456693
L 363.628346 158.456693
L 363.628346 0
<path d="M 0 201.486614
L 467.943307 201.486614
L 467.943307 0
L 0 0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 21.387402 105.420472
L 89.050394 105.420472
Q 92.324409 105.420472 92.324409 102.146457
L 92.324409 56.310236
Q 92.324409 53.03622 89.050394 53.03622
L 21.387402 53.03622
Q 18.113386 53.03622 18.113386 56.310236
L 18.113386 102.146457
Q 18.113386 105.420472 21.387402 105.420472
<path d="M 25.625197 134.759055
L 113.499213 134.759055
Q 117.751181 134.759055 117.751181 130.507087
L 117.751181 70.979528
Q 117.751181 66.727559 113.499213 66.727559
L 25.625197 66.727559
Q 21.373228 66.727559 21.373228 70.979528
L 21.373228 130.507087
Q 21.373228 134.759055 25.625197 134.759055
z
" clip-path="url(#p4921a591cb)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p65b6899c2d)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_3">
<path d="M 152.348031 105.420472
L 211.280315 105.420472
Q 214.554331 105.420472 214.554331 102.146457
L 214.554331 56.310236
Q 214.554331 53.03622 211.280315 53.03622
L 152.348031 53.03622
Q 149.074016 53.03622 149.074016 56.310236
L 149.074016 102.146457
Q 149.074016 105.420472 152.348031 105.420472
<path d="M 195.703937 134.759055
L 272.23937 134.759055
Q 276.491339 134.759055 276.491339 130.507087
L 276.491339 70.979528
Q 276.491339 66.727559 272.23937 66.727559
L 195.703937 66.727559
Q 191.451969 66.727559 191.451969 70.979528
L 191.451969 130.507087
Q 191.451969 134.759055 195.703937 134.759055
z
" clip-path="url(#p4921a591cb)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p65b6899c2d)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_4">
<path d="M 272.395276 61.766929
L 344.423622 61.766929
Q 347.697638 61.766929 347.697638 58.492913
L 347.697638 34.483465
Q 347.697638 31.209449 344.423622 31.209449
L 272.395276 31.209449
Q 269.12126 31.209449 269.12126 34.483465
L 269.12126 58.492913
Q 269.12126 61.766929 272.395276 61.766929
<path d="M 351.609449 78.066142
L 445.152756 78.066142
Q 449.404724 78.066142 449.404724 73.814173
L 449.404724 42.633071
Q 449.404724 38.381102 445.152756 38.381102
L 351.609449 38.381102
Q 347.35748 38.381102 347.35748 42.633071
L 347.35748 73.814173
Q 347.35748 78.066142 351.609449 78.066142
z
" clip-path="url(#p4921a591cb)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p65b6899c2d)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_5">
<path d="M 272.395276 127.247244
L 344.423622 127.247244
Q 347.697638 127.247244 347.697638 123.973228
L 347.697638 99.96378
Q 347.697638 96.689764 344.423622 96.689764
L 272.395276 96.689764
Q 269.12126 96.689764 269.12126 99.96378
L 269.12126 123.973228
Q 269.12126 127.247244 272.395276 127.247244
<path d="M 351.609449 163.105512
L 445.152756 163.105512
Q 449.404724 163.105512 449.404724 158.853543
L 449.404724 127.672441
Q 449.404724 123.420472 445.152756 123.420472
L 351.609449 123.420472
Q 347.35748 123.420472 347.35748 127.672441
L 347.35748 158.853543
Q 347.35748 163.105512 351.609449 163.105512
z
" clip-path="url(#p4921a591cb)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p65b6899c2d)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="text_1">
<!-- ESP32-S3 -->
<g style="fill: #1f5fa8" transform="translate(28.425148 62.858268) scale(0.1 -0.1)">
<g style="fill: #1f5fa8" transform="translate(42.768455 79.483465) scale(0.1 -0.1)">
<defs>
<path id="DejaVuSans-Bold-28" d="M 588 4666
L 3834 4666
@@ -225,7 +225,7 @@ z
</g>
<g id="text_2">
<!-- BME280 + LED -->
<g style="fill: #1f2937" transform="translate(25.130148 83.053409) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(39.473455 106.524275) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-25" d="M 1259 2228
L 1259 519
@@ -433,7 +433,7 @@ z
<use xlink:href="#DejaVuSans-27" transform="translate(675.21875 0)"/>
</g>
<!-- NeoPixel -->
<g style="fill: #1f2937" transform="translate(38.065773 92.655597) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(52.40908 116.126463) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-31" d="M 628 4666
L 1478 4666
@@ -563,7 +563,7 @@ z
</g>
<g id="text_3">
<!-- Broker -->
<g style="fill: #e07a1f" transform="translate(163.054798 69.406299) scale(0.1 -0.1)">
<g style="fill: #e07a1f" transform="translate(215.212279 87.987402) scale(0.1 -0.1)">
<defs>
<path id="DejaVuSans-Bold-25" d="M 2456 2859
Q 2741 2859 2887 2984
@@ -685,7 +685,7 @@ z
</g>
<g id="text_4">
<!-- Mosquitto, -->
<g style="fill: #1f2937" transform="translate(160.791048 83.053722) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(212.948529 106.524588) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-56" d="M 2834 3397
L 2834 2853
@@ -809,7 +809,7 @@ z
<use xlink:href="#DejaVuSans-f" transform="translate(493.796875 0)"/>
</g>
<!-- HiveMQ… -->
<g style="fill: #1f2937" transform="translate(162.266048 92.655909) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(214.423529 116.126775) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-2b" d="M 628 4666
L 1259 4666
@@ -893,7 +893,7 @@ z
</g>
<g id="text_5">
<!-- Tableau de bord -->
<g style="fill: #1f2937" transform="translate(274.436675 44.132095) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(364.408329 55.867528) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-37" d="M -19 4666
L 3928 4666
@@ -1026,7 +1026,7 @@ z
<use xlink:href="#DejaVuSans-47" transform="translate(735.875 0)"/>
</g>
<!-- (Node-RED) -->
<g style="fill: #1f2937" transform="translate(283.555582 54.682056) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(373.527235 66.417489) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-b" d="M 1984 4856
Q 1566 4138 1362 3434
@@ -1104,7 +1104,7 @@ z
</g>
<g id="text_6">
<!-- Home Assistant -->
<g style="fill: #1f2937" transform="translate(275.147222 115.13741) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(365.118876 146.431898) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-50" d="M 3328 2828
Q 3544 3216 3844 3400
@@ -1189,26 +1189,26 @@ z
</g>
</g>
<g id="patch_6">
<path d="M 92.324409 66.132283
Q 120.699213 66.132283 147.620572 66.132283
<path d="M 117.751181 83.735433
Q 154.601575 83.735433 189.998524 83.735433
" style="fill: none; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 143.220572 63.932283
L 147.620572 66.132283
L 143.220572 68.332283
<path d="M 185.598524 81.535433
L 189.998524 83.735433
L 185.598524 85.935433
z
" style="fill: #1f5fa8; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_7">
<g id="patch_7">
<path d="M 105.444213 63.003465
L 135.954213 63.003465
L 135.954213 53.40284
L 105.444213 53.40284
<path d="M 139.346575 79.433071
L 169.856575 79.433071
L 169.856575 69.832446
L 139.346575 69.832446
z
" style="fill: #ffffff"/>
</g>
<!-- publish -->
<g style="fill: #1f5fa8" transform="translate(106.244213 60.28159) scale(0.08 -0.08)">
<g style="fill: #1f5fa8" transform="translate(140.146575 76.711196) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-53" d="M 1159 525
L 1159 -1331
@@ -1267,7 +1267,7 @@ z
</g>
<g id="text_8">
<!-- formation/esp32s3/temperature -->
<g style="fill: #1f5fa8" transform="translate(63.521609 31.778829) scale(0.068 -0.068)">
<g style="fill: #1f5fa8" transform="translate(98.075939 41.558357) scale(0.068 -0.068)">
<defs>
<path id="DejaVuSansMono-49" d="M 3322 4863
L 3322 4384
@@ -1650,7 +1650,7 @@ z
<use xlink:href="#DejaVuSansMono-48" transform="translate(1685.6875 0)"/>
</g>
<!-- « 21.5 » -->
<g style="fill: #1f5fa8" transform="translate(106.50664 39.940157) scale(0.068 -0.068)">
<g style="fill: #1f5fa8" transform="translate(141.06097 49.719685) scale(0.068 -0.068)">
<defs>
<path id="DejaVuSansMono-6d" d="M 1838 3309
L 1838 2713
@@ -1749,28 +1749,28 @@ z
</g>
</g>
<g id="patch_8">
<path d="M 214.554331 66.132283
Q 241.837795 58.492913 267.721645 51.245435
<path d="M 276.491339 83.735433
Q 311.924409 73.814173 345.957866 64.284805
" style="fill: none; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 262.891418 50.313286
L 267.721645 51.245435
L 264.07779 54.550328
<path d="M 341.127638 63.352656
L 345.957866 64.284805
L 342.31401 67.589698
z
" style="fill: #1f5fa8; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="patch_9">
<path d="M 214.554331 70.497638
Q 241.837795 89.050394 267.919368 106.785863
<path d="M 276.491339 89.404724
Q 311.924409 113.499213 346.155589 136.776415
" style="fill: none; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 265.517974 102.492461
L 267.919368 106.785863
L 263.04381 106.130938
<path d="M 343.754194 132.483012
L 346.155589 136.776415
L 341.28003 136.121489
z
" style="fill: #1f5fa8; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_9">
<!-- abonnés à …/temperature -->
<g style="fill: #6b7280" transform="translate(230.489469 69.495039) scale(0.072 -0.072)">
<g style="fill: #6b7280" transform="translate(311.333563 90.684016) scale(0.072 -0.072)">
<defs>
<path id="DejaVuSans-Oblique-44" d="M 3438 1997
L 3047 0
@@ -2221,7 +2221,7 @@ z
<use xlink:href="#DejaVuSans-Oblique-48" transform="translate(1254.09375 0)"/>
</g>
<!-- → reçoivent la valeur -->
<g style="fill: #6b7280" transform="translate(239.967031 78.137008) scale(0.072 -0.072)">
<g style="fill: #6b7280" transform="translate(320.811125 99.325984) scale(0.072 -0.072)">
<defs>
<path id="DejaVuSans-Oblique-b24" d="M 5050 2147
L 5050 1866
@@ -2332,36 +2332,36 @@ z
</g>
</g>
<g id="patch_10">
<path d="M 269.12126 37.75748
Q 241.837795 47.579528 215.921858 56.909265
<path d="M 347.35748 46.885039
Q 311.924409 59.640945 277.858866 71.904541
" style="fill: none; stroke: #c0392b; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 220.806945 57.488852
L 215.921858 56.909265
L 219.31658 53.348947
<path d="M 282.743953 72.484127
L 277.858866 71.904541
L 281.253588 68.344223
z
" style="fill: #c0392b; stroke: #c0392b; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="patch_11">
<path d="M 149.074016 92.324409
Q 120.699213 92.324409 93.777854 92.324409
<path d="M 191.451969 117.751181
Q 154.601575 117.751181 119.204625 117.751181
" style="fill: none; stroke: #c0392b; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 98.177854 94.524409
L 93.777854 92.324409
L 98.177854 90.124409
<path d="M 123.604625 119.951181
L 119.204625 117.751181
L 123.604625 115.551181
z
" style="fill: #c0392b; stroke: #c0392b; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_10">
<g id="patch_12">
<path d="M 101.922338 89.195591
L 139.476088 89.195591
L 139.476088 79.595591
L 101.922338 79.595591
<path d="M 135.8247 113.448819
L 173.37845 113.448819
L 173.37845 103.848819
L 135.8247 103.848819
z
" style="fill: #ffffff"/>
</g>
<!-- message -->
<g style="fill: #c0392b" transform="translate(102.722338 86.473716) scale(0.08 -0.08)">
<g style="fill: #c0392b" transform="translate(136.6247 110.726944) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-4a" d="M 2906 1791
Q 2906 2416 2648 2759
@@ -2409,7 +2409,7 @@ z
</g>
<g id="text_11">
<!-- formation/esp32s3/commande -->
<g style="fill: #c0392b" transform="translate(69.662327 111.446546) scale(0.068 -0.068)">
<g style="fill: #c0392b" transform="translate(104.216658 145.022924) scale(0.068 -0.068)">
<defs>
<path id="DejaVuSansMono-46" d="M 3316 178
Q 3084 44 2839 -23
@@ -2487,7 +2487,7 @@ z
<use xlink:href="#DejaVuSansMono-48" transform="translate(1505.078125 0)"/>
</g>
<!-- « rouge » -->
<g style="fill: #c0392b" transform="translate(104.459734 119.607874) scale(0.068 -0.068)">
<g style="fill: #c0392b" transform="translate(139.014064 153.184252) scale(0.068 -0.068)">
<defs>
<path id="DejaVuSansMono-4a" d="M 2681 1778
Q 2681 2425 2470 2761
@@ -2538,7 +2538,7 @@ z
</g>
<g id="text_12">
<!-- publish « rouge » -->
<g style="fill: #c0392b" transform="translate(215.206121 36.774801) rotate(-20) scale(0.075 -0.075)">
<g style="fill: #c0392b" transform="translate(286.270688 45.576376) rotate(-20) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-6d" d="M 3316 3309
L 3316 2713
@@ -2600,7 +2600,7 @@ z
</g>
<g id="text_13">
<!-- Les appareils ne se parlent jamais directement : tout passe par le broker. -->
<g style="fill: #6b7280" transform="translate(38.416048 143.617323) scale(0.078 -0.078)">
<g style="fill: #6b7280" transform="translate(90.573529 184.365354) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-Oblique-2f" d="M 1075 4666
L 1709 4666
@@ -2803,8 +2803,8 @@ z
</g>
</g>
<defs>
<clipPath id="p4921a591cb">
<rect x="7.2" y="7.2" width="349.228346" height="144.056693"/>
<clipPath id="p65b6899c2d">
<rect x="7.2" y="7.2" width="453.543307" height="187.086614"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB