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
+118 -118
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="167.187402pt" viewBox="0 0 363.628346 167.187402" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="467.943307pt" height="212.825197pt" viewBox="0 0 467.943307 212.825197" 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,121 +20,121 @@
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 167.187402
L 363.628346 167.187402
L 363.628346 0
<path d="M 0 212.825197
L 467.943307 212.825197
L 467.943307 0
L 0 0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 14.83937 155.622047
L 244.020472 155.622047
Q 247.294488 155.622047 247.294488 152.348031
L 247.294488 14.83937
Q 247.294488 11.565354 244.020472 11.565354
L 14.83937 11.565354
Q 11.565354 11.565354 11.565354 14.83937
L 11.565354 152.348031
Q 11.565354 155.622047 14.83937 155.622047
<path d="M 17.12126 199.955906
L 314.759055 199.955906
Q 319.011024 199.955906 319.011024 195.703937
L 319.011024 17.12126
Q 319.011024 12.869291 314.759055 12.869291
L 17.12126 12.869291
Q 12.869291 12.869291 12.869291 17.12126
L 12.869291 195.703937
Q 12.869291 199.955906 17.12126 199.955906
z
" clip-path="url(#p000f9ce386)" style="fill: #f5f8fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #f5f8fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_3">
<path d="M 23.570079 146.891339
L 235.289764 146.891339
Q 238.56378 146.891339 238.56378 143.617323
L 238.56378 38.848819
Q 238.56378 35.574803 235.289764 35.574803
L 23.570079 35.574803
Q 20.296063 35.574803 20.296063 38.848819
L 20.296063 143.617323
Q 20.296063 146.891339 23.570079 146.891339
<path d="M 28.459843 188.617323
L 303.420472 188.617323
Q 307.672441 188.617323 307.672441 184.365354
L 307.672441 48.302362
Q 307.672441 44.050394 303.420472 44.050394
L 28.459843 44.050394
Q 24.207874 44.050394 24.207874 48.302362
L 24.207874 184.365354
Q 24.207874 188.617323 28.459843 188.617323
z
" clip-path="url(#p000f9ce386)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_4">
<path d="M 32.300787 138.16063
L 226.559055 138.16063
Q 229.833071 138.16063 229.833071 134.886614
L 229.833071 73.771654
Q 229.833071 70.497638 226.559055 70.497638
L 32.300787 70.497638
Q 29.026772 70.497638 29.026772 73.771654
L 29.026772 134.886614
Q 29.026772 138.16063 32.300787 138.16063
<path d="M 39.798425 177.27874
L 292.08189 177.27874
Q 296.333858 177.27874 296.333858 173.026772
L 296.333858 93.656693
Q 296.333858 89.404724 292.08189 89.404724
L 39.798425 89.404724
Q 35.546457 89.404724 35.546457 93.656693
L 35.546457 173.026772
Q 35.546457 177.27874 39.798425 177.27874
z
" clip-path="url(#p000f9ce386)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_5">
<path d="M 37.75748 109.240157
L 63.949606 109.240157
Q 67.223622 109.240157 67.223622 105.966142
L 67.223622 100.509449
Q 67.223622 97.235433 63.949606 97.235433
L 37.75748 97.235433
Q 34.483465 97.235433 34.483465 100.509449
L 34.483465 105.966142
Q 34.483465 109.240157 37.75748 109.240157
<path d="M 46.885039 139.719685
L 80.900787 139.719685
Q 85.152756 139.719685 85.152756 135.467717
L 85.152756 128.381102
Q 85.152756 124.129134 80.900787 124.129134
L 46.885039 124.129134
Q 42.633071 124.129134 42.633071 128.381102
L 42.633071 135.467717
Q 42.633071 139.719685 46.885039 139.719685
z
" clip-path="url(#p000f9ce386)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_6">
<path d="M 75.954331 109.240157
L 102.146457 109.240157
Q 105.420472 109.240157 105.420472 105.966142
L 105.420472 100.509449
Q 105.420472 97.235433 102.146457 97.235433
L 75.954331 97.235433
Q 72.680315 97.235433 72.680315 100.509449
L 72.680315 105.966142
Q 72.680315 109.240157 75.954331 109.240157
<path d="M 96.491339 139.719685
L 130.507087 139.719685
Q 134.759055 139.719685 134.759055 135.467717
L 134.759055 128.381102
Q 134.759055 124.129134 130.507087 124.129134
L 96.491339 124.129134
Q 92.23937 124.129134 92.23937 128.381102
L 92.23937 135.467717
Q 92.23937 139.719685 96.491339 139.719685
z
" clip-path="url(#p000f9ce386)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_7">
<path d="M 114.151181 109.240157
L 140.343307 109.240157
Q 143.617323 109.240157 143.617323 105.966142
L 143.617323 100.509449
Q 143.617323 97.235433 140.343307 97.235433
L 114.151181 97.235433
Q 110.877165 97.235433 110.877165 100.509449
L 110.877165 105.966142
Q 110.877165 109.240157 114.151181 109.240157
<path d="M 146.097638 139.719685
L 180.113386 139.719685
Q 184.365354 139.719685 184.365354 135.467717
L 184.365354 128.381102
Q 184.365354 124.129134 180.113386 124.129134
L 146.097638 124.129134
Q 141.845669 124.129134 141.845669 128.381102
L 141.845669 135.467717
Q 141.845669 139.719685 146.097638 139.719685
z
" clip-path="url(#p000f9ce386)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_8">
<path d="M 165.444094 111.968504
L 215.645669 111.968504
Q 218.919685 111.968504 218.919685 108.694488
L 218.919685 97.781102
Q 218.919685 94.507087 215.645669 94.507087
L 165.444094 94.507087
Q 162.170079 94.507087 162.170079 97.781102
L 162.170079 108.694488
Q 162.170079 111.968504 165.444094 111.968504
<path d="M 212.711811 143.262992
L 277.908661 143.262992
Q 282.16063 143.262992 282.16063 139.011024
L 282.16063 124.837795
Q 282.16063 120.585827 277.908661 120.585827
L 212.711811 120.585827
Q 208.459843 120.585827 208.459843 124.837795
L 208.459843 139.011024
Q 208.459843 143.262992 212.711811 143.262992
z
" clip-path="url(#p000f9ce386)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_9">
<path d="M 287.674016 105.420472
L 342.240945 105.420472
Q 345.514961 105.420472 345.514961 102.146457
L 345.514961 65.040945
Q 345.514961 61.766929 342.240945 61.766929
L 287.674016 61.766929
Q 284.4 61.766929 284.4 65.040945
L 284.4 102.146457
Q 284.4 105.420472 287.674016 105.420472
<path d="M 371.451969 134.759055
L 442.31811 134.759055
Q 446.570079 134.759055 446.570079 130.507087
L 446.570079 82.31811
Q 446.570079 78.066142 442.31811 78.066142
L 371.451969 78.066142
Q 367.2 78.066142 367.2 82.31811
L 367.2 130.507087
Q 367.2 134.759055 371.451969 134.759055
z
" clip-path="url(#p000f9ce386)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p87cb79ee9a)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="text_1">
<!-- Serveur BLE — l'ESP32-S3 -->
<g style="fill: #1f5fa8" transform="translate(18.113386 20.296063) scale(0.095 -0.095)">
<g style="fill: #1f5fa8" transform="translate(21.373228 24.207874) scale(0.095 -0.095)">
<defs>
<path id="DejaVuSans-Bold-36" d="M 3834 4519
L 3834 3531
@@ -431,7 +431,7 @@ z
</g>
<g id="text_2">
<!-- BLEDevice::init("ESP32-S3-Formation") -->
<g style="fill: #6b7280" transform="translate(18.113386 29.026772) scale(0.075 -0.075)">
<g style="fill: #6b7280" transform="translate(21.373228 35.546457) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSansMono-25" d="M 1153 2228
L 1153 519
@@ -950,7 +950,7 @@ z
</g>
<g id="text_3">
<!-- Service -->
<g style="fill: #e07a1f" transform="translate(26.844094 45.39685) scale(0.09 -0.09)">
<g style="fill: #e07a1f" transform="translate(32.711811 56.806299) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-Bold-4c" d="M 538 3500
L 1656 3500
@@ -998,7 +998,7 @@ z
</g>
<g id="text_4">
<!-- UUID 4fafc201-1fb5-459e-8fcc-c5c9c331914b -->
<g style="fill: #1f2937" transform="translate(26.844094 53.03622) scale(0.075 -0.075)">
<g style="fill: #1f2937" transform="translate(32.711811 66.727559) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSansMono-38" d="M 459 1791
L 459 4666
@@ -1292,7 +1292,7 @@ z
</g>
<g id="text_5">
<!-- Caractéristique -->
<g style="fill: #2e8b57" transform="translate(35.574803 78.137008) scale(0.09 -0.09)">
<g style="fill: #2e8b57" transform="translate(44.050394 99.325984) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-Bold-26" d="M 4288 256
Q 3956 84 3597 -3
@@ -1477,7 +1477,7 @@ z
</g>
<g id="text_6">
<!-- UUID beb5483e-36e1-4688-b7f5-ea07361b26a8 -->
<g style="fill: #1f2937" transform="translate(35.574803 85.776378) scale(0.075 -0.075)">
<g style="fill: #1f2937" transform="translate(44.050394 109.247244) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSansMono-19" d="M 3097 4563
L 3097 3981
@@ -1565,7 +1565,7 @@ z
</g>
<g id="text_7">
<!-- READ -->
<g style="fill: #1f2937" transform="translate(39.38909 105.97178) scale(0.075 -0.075)">
<g style="fill: #1f2937" transform="translate(52.42846 134.658394) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-Bold-35" d="M 2297 2597
Q 2675 2597 2839 2737
@@ -1643,7 +1643,7 @@ z
</g>
<g id="text_8">
<!-- WRITE -->
<g style="fill: #1f2937" transform="translate(75.511722 105.97178) scale(0.075 -0.075)">
<g style="fill: #1f2937" transform="translate(99.960541 134.658394) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-Bold-3a" d="M 191 4666
L 1344 4666
@@ -1689,7 +1689,7 @@ z
</g>
<g id="text_9">
<!-- NOTIFY -->
<g style="fill: #1f2937" transform="translate(111.690603 105.967678) scale(0.075 -0.075)">
<g style="fill: #1f2937" transform="translate(147.548871 134.654292) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-Bold-31" d="M 588 4666
L 1931 4666
@@ -1761,7 +1761,7 @@ z
</g>
<g id="text_10">
<!-- valeur : "rouge" -->
<g style="fill: #1f2937" transform="translate(158.864882 105.445295) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(216.719036 133.916678) scale(0.0722 -0.0722)">
<defs>
<path id="DejaVuSans-59" d="M 191 3500
L 800 3500
@@ -1980,7 +1980,7 @@ z
</g>
<g id="text_11">
<!-- (un service peut contenir plusieurs caractéristiques) -->
<g style="fill: #6b7280" transform="translate(33.891171 129.429921) scale(0.073 -0.073)">
<g style="fill: #6b7280" transform="translate(70.401407 165.940157) scale(0.073 -0.073)">
<defs>
<path id="DejaVuSans-Oblique-b" d="M 2731 4856
Q 1903 3822 1495 2892
@@ -2437,7 +2437,7 @@ z
</g>
<g id="text_12">
<!-- Client BLE -->
<g style="fill: #1f2937" transform="translate(293.333613 75.712607) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(385.261172 98.531505) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-26" d="M 4122 4306
L 4122 3641
@@ -2582,7 +2582,7 @@ z
<use xlink:href="#DejaVuSans-28" transform="translate(445.609375 0)"/>
</g>
<!-- smartphone -->
<g style="fill: #1f2937" transform="translate(289.285488 85.93917) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(381.213047 108.758067) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-56" d="M 2834 3397
L 2834 2853
@@ -2703,7 +2703,7 @@ z
<use xlink:href="#DejaVuSans-48" transform="translate(542.515625 0)"/>
</g>
<!-- (nRF Connect) -->
<g style="fill: #1f2937" transform="translate(284.626426 97.30792) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(376.553985 120.126817) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-b" d="M 1984 4856
Q 1566 4138 1362 3434
@@ -2810,18 +2810,18 @@ z
</g>
</g>
<g id="patch_10">
<path d="M 284.4 94.507087
Q 265.847244 94.507087 248.747932 94.507087
<path d="M 367.2 120.585827
Q 343.105512 120.585827 320.464468 120.585827
" style="fill: none; stroke: #e07a1f; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 253.147932 96.707087
L 248.747932 94.507087
L 253.147932 92.307087
<path d="M 324.864468 122.785827
L 320.464468 120.585827
L 324.864468 118.385827
z
" style="fill: #e07a1f; stroke: #e07a1f; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_13">
<!-- écrit -->
<g style="fill: #e07a1f" transform="translate(257.424393 90.959187) scale(0.075 -0.075)">
<g style="fill: #e07a1f" transform="translate(334.68266 116.516352) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-ab" d="M 3597 1894
L 3597 1613
@@ -2863,18 +2863,18 @@ z
</g>
</g>
<g id="patch_11">
<path d="M 247.294488 111.968504
Q 265.847244 111.968504 282.946556 111.968504
<path d="M 319.011024 143.262992
Q 343.105512 143.262992 365.746556 143.262992
" style="fill: none; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 278.546556 109.768504
L 282.946556 111.968504
L 278.546556 114.168504
<path d="M 361.346556 141.062992
L 365.746556 143.262992
L 361.346556 145.462992
z
" style="fill: #2e8b57; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_14">
<!-- notifie -->
<g style="fill: #2e8b57" transform="translate(253.9949 108.420604) scale(0.075 -0.075)">
<g style="fill: #2e8b57" transform="translate(331.253168 139.193518) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-13af" d="M 3431 3500
L 3431 0
@@ -2915,18 +2915,18 @@ z
</g>
</g>
<g id="patch_12">
<path d="M 284.4 70.497638
Q 265.847244 70.497638 248.747932 70.497638
<path d="M 367.2 89.404724
Q 343.105512 89.404724 320.464468 89.404724
" style="fill: none; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 253.147932 72.697638
L 248.747932 70.497638
L 253.147932 68.297638
<path d="M 324.864468 91.604724
L 320.464468 89.404724
L 324.864468 87.204724
z
" style="fill: #1f5fa8; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_15">
<!-- lit -->
<g style="fill: #1f5fa8" transform="translate(262.293533 66.949738) scale(0.075 -0.075)">
<g style="fill: #1f5fa8" transform="translate(339.551801 85.33525) scale(0.075 -0.075)">
<use xlink:href="#DejaVuSans-4f"/>
<use xlink:href="#DejaVuSans-4c" transform="translate(27.78125 0)"/>
<use xlink:href="#DejaVuSans-57" transform="translate(55.5625 0)"/>
@@ -2935,8 +2935,8 @@ z
</g>
</g>
<defs>
<clipPath id="p000f9ce386">
<rect x="7.2" y="7.2" width="349.228346" height="152.787402"/>
<clipPath id="p87cb79ee9a">
<rect x="7.2" y="7.2" width="453.543307" height="198.425197"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB