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
+86 -86
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="162.822047pt" viewBox="0 0 363.628346 162.822047" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="467.943307pt" height="207.155906pt" viewBox="0 0 467.943307 207.155906" 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,74 +20,74 @@
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 162.822047
L 363.628346 162.822047
L 363.628346 0
L 0 0
<path d="M 0 207.155906
L 467.943307 207.155906
L 467.943307 -0
L 0 -0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 17.022047 111.968504
L 75.954331 111.968504
Q 79.228346 111.968504 79.228346 108.694488
L 79.228346 67.223622
Q 79.228346 63.949606 75.954331 63.949606
L 17.022047 63.949606
Q 13.748031 63.949606 13.748031 67.223622
L 13.748031 108.694488
Q 13.748031 111.968504 17.022047 111.968504
<path d="M 19.955906 143.262992
L 96.491339 143.262992
Q 100.743307 143.262992 100.743307 139.011024
L 100.743307 85.152756
Q 100.743307 80.900787 96.491339 80.900787
L 19.955906 80.900787
Q 15.703937 80.900787 15.703937 85.152756
L 15.703937 139.011024
Q 15.703937 143.262992 19.955906 143.262992
z
" clip-path="url(#p339f6ebe6d)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p39a3ba2e0c)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_3">
<path d="M 141.434646 135.977953
L 222.193701 135.977953
Q 225.467717 135.977953 225.467717 132.703937
L 225.467717 38.848819
Q 225.467717 35.574803 222.193701 35.574803
L 141.434646 35.574803
Q 138.16063 35.574803 138.16063 38.848819
L 138.16063 132.703937
Q 138.16063 135.977953 141.434646 135.977953
<path d="M 181.530709 174.444094
L 286.412598 174.444094
Q 290.664567 174.444094 290.664567 170.192126
L 290.664567 48.302362
Q 290.664567 44.050394 286.412598 44.050394
L 181.530709 44.050394
Q 177.27874 44.050394 177.27874 48.302362
L 177.27874 170.192126
Q 177.27874 174.444094 181.530709 174.444094
z
" clip-path="url(#p339f6ebe6d)" style="fill: #f5f8fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p39a3ba2e0c)" style="fill: #f5f8fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_4">
<path d="M 283.308661 131.612598
L 342.240945 131.612598
Q 345.514961 131.612598 345.514961 128.338583
L 345.514961 51.944882
Q 345.514961 48.670866 342.240945 48.670866
L 283.308661 48.670866
Q 280.034646 48.670866 280.034646 51.944882
L 280.034646 128.338583
Q 280.034646 131.612598 283.308661 131.612598
<path d="M 365.782677 168.774803
L 442.31811 168.774803
Q 446.570079 168.774803 446.570079 164.522835
L 446.570079 65.310236
Q 446.570079 61.058268 442.31811 61.058268
L 365.782677 61.058268
Q 361.530709 61.058268 361.530709 65.310236
L 361.530709 164.522835
Q 361.530709 168.774803 365.782677 168.774803
z
" clip-path="url(#p339f6ebe6d)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p39a3ba2e0c)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_5">
<path d="M 145.8 70.497638
L 174.174803 70.497638
Q 177.448819 70.497638 177.448819 67.223622
L 177.448819 60.675591
Q 177.448819 57.401575 174.174803 57.401575
L 145.8 57.401575
Q 142.525984 57.401575 142.525984 60.675591
L 142.525984 67.223622
Q 142.525984 70.497638 145.8 70.497638
<path d="M 187.2 89.404724
L 224.050394 89.404724
Q 228.302362 89.404724 228.302362 85.152756
L 228.302362 76.648819
Q 228.302362 72.39685 224.050394 72.39685
L 187.2 72.39685
Q 182.948031 72.39685 182.948031 76.648819
L 182.948031 85.152756
Q 182.948031 89.404724 187.2 89.404724
z
" clip-path="url(#p339f6ebe6d)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p39a3ba2e0c)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="line2d_1">
<path d="M 225.467717 133.795276
L 280.034646 133.795276
" clip-path="url(#p339f6ebe6d)" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: square"/>
<path d="M 290.664567 171.609449
L 361.530709 171.609449
" clip-path="url(#p39a3ba2e0c)" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: square"/>
</g>
<g id="text_1">
<!-- Ordinateur -->
<g style="fill: #1f2937" transform="translate(23.571392 80.077961) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(35.306825 104.200796) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-32" d="M 2522 4238
Q 1834 4238 1429 3725
@@ -299,9 +299,9 @@ z
<use xlink:href="#DejaVuSans-55" transform="translate(498.109375 0)"/>
</g>
<!-- -->
<g style="fill: #1f2937" transform="translate(46.488189 87.959055) scale(0.085 -0.085)"/>
<g style="fill: #1f2937" transform="translate(58.223622 112.08189) scale(0.085 -0.085)"/>
<!-- Moniteur série -->
<g style="fill: #1f2937" transform="translate(15.902134 102.347961) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(27.637567 126.470796) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-30" d="M 628 4666
L 1569 4666
@@ -422,7 +422,7 @@ z
</g>
<g id="text_2">
<!-- ESP32-S3 -->
<g style="fill: #1f5fa8" transform="translate(155.020423 44.305512) scale(0.1 -0.1)">
<g style="fill: #1f5fa8" transform="translate(207.177904 55.388976) scale(0.1 -0.1)">
<defs>
<path id="DejaVuSans-Bold-28" d="M 588 4666
L 3834 4666
@@ -565,7 +565,7 @@ z
</g>
<g id="text_3">
<!-- Module externe -->
<g style="fill: #1f2937" transform="translate(279.650702 61.057116) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(370.926292 78.008297) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-4f" d="M 603 4863
L 1178 4863
@@ -606,7 +606,7 @@ z
<use xlink:href="#DejaVuSans-48" transform="translate(717.859375 0)"/>
</g>
<!-- (GPS, RFID…) -->
<g style="fill: #1f2937" transform="translate(284.02953 71.258776) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(375.30512 88.209957) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-b" d="M 1984 4856
Q 1566 4138 1362 3434
@@ -823,7 +823,7 @@ z
</g>
<g id="text_4">
<!-- USB -->
<g style="fill: #1f2937" transform="translate(151.776152 66.861481) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(197.413947 83.812662) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-38" d="M 556 4666
L 1191 4666
@@ -881,23 +881,23 @@ z
</g>
</g>
<g id="patch_6">
<path d="M 80.681791 63.949606
Q 110.877165 63.949606 141.07254 63.949606
<path d="M 102.196751 80.900787
Q 141.845669 80.900787 181.494587 80.900787
" style="fill: none; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 85.081791 66.149606
L 80.681791 63.949606
L 85.081791 61.749606
<path d="M 106.596751 83.100787
L 102.196751 80.900787
L 106.596751 78.700787
z
" style="fill: #2e8b57; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 136.67254 61.749606
L 141.07254 63.949606
L 136.67254 66.149606
<path d="M 177.094587 78.700787
L 181.494587 80.900787
L 177.094587 83.100787
z
" style="fill: #2e8b57; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_5">
<!-- Serial -->
<g style="fill: #2e8b57" transform="translate(99.558415 47.696569) scale(0.08 -0.08)">
<g style="fill: #2e8b57" transform="translate(130.526919 63.474206) scale(0.08 -0.08)">
<use xlink:href="#DejaVuSans-36"/>
<use xlink:href="#DejaVuSans-48" transform="translate(63.484375 0)"/>
<use xlink:href="#DejaVuSans-55" transform="translate(125.015625 0)"/>
@@ -906,7 +906,7 @@ z
<use xlink:href="#DejaVuSans-4f" transform="translate(255.1875 0)"/>
</g>
<!-- (USB CDC) -->
<g style="fill: #2e8b57" transform="translate(89.607165 57.298131) scale(0.08 -0.08)">
<g style="fill: #2e8b57" transform="translate(120.575669 73.075769) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-26" d="M 4122 4306
L 4122 3641
@@ -943,7 +943,7 @@ z
</g>
<g id="text_6">
<!-- GPIO18 (TX) -->
<g style="fill: #1f2937" transform="translate(171.210586 92.34974) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(235.755468 117.124543) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-14" d="M 794 531
L 1825 531
@@ -1040,7 +1040,7 @@ z
</g>
<g id="text_7">
<!-- GPIO17 (RX) -->
<g style="fill: #1f2937" transform="translate(170.496055 114.176512) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(235.040937 145.471) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-1a" d="M 525 4666
L 3525 4666
@@ -1068,21 +1068,21 @@ z
</g>
<g id="text_8">
<!-- RX -->
<g style="fill: #1f2937" transform="translate(284.4 92.34974) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(367.2 117.124543) scale(0.085 -0.085)">
<use xlink:href="#DejaVuSans-35"/>
<use xlink:href="#DejaVuSans-3b" transform="translate(69.484375 0)"/>
</g>
</g>
<g id="text_9">
<!-- TX -->
<g style="fill: #1f2937" transform="translate(284.4 114.176512) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(367.2 145.471) scale(0.085 -0.085)">
<use xlink:href="#DejaVuSans-37"/>
<use xlink:href="#DejaVuSans-3b" transform="translate(61.078125 0)"/>
</g>
</g>
<g id="text_10">
<!-- GND -->
<g style="fill: #1f2937" transform="translate(203.794805 136.003283) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(268.339687 173.817457) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-31" d="M 628 4666
L 1478 4666
@@ -1105,35 +1105,35 @@ z
</g>
<g id="text_11">
<!-- GND -->
<g style="fill: #1f2937" transform="translate(284.4 136.003283) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(367.2 173.817457) scale(0.085 -0.085)">
<use xlink:href="#DejaVuSans-2a"/>
<use xlink:href="#DejaVuSans-31" transform="translate(77.484375 0)"/>
<use xlink:href="#DejaVuSans-27" transform="translate(152.296875 0)"/>
</g>
</g>
<g id="patch_7">
<path d="M 225.467717 90.141732
Q 252.751181 101.055118 278.685157 111.428708
<path d="M 290.664567 114.916535
Q 326.097638 129.089764 360.18122 142.723197
" style="fill: none; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 275.416919 107.751941
L 278.685157 111.428708
L 273.7828 111.837238
<path d="M 356.912982 139.046429
L 360.18122 142.723197
L 355.278863 143.131726
z
" style="fill: #1f5fa8; stroke: #1f5fa8; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="patch_8">
<path d="M 280.034646 90.141732
Q 252.751181 101.055118 226.817206 111.428708
<path d="M 361.530709 114.916535
Q 326.097638 129.089764 292.014056 142.723197
" style="fill: none; stroke: #e07a1f; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 231.719563 111.837238
L 226.817206 111.428708
L 230.085444 107.751941
<path d="M 296.916413 143.131726
L 292.014056 142.723197
L 295.282294 139.046429
z
" style="fill: #e07a1f; stroke: #e07a1f; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_12">
<!-- croisé ! -->
<g style="fill: #e07a1f" transform="translate(234.929072 82.502362) scale(0.085 -0.085)">
<g style="fill: #e07a1f" transform="translate(308.275528 104.995276) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-Bold-46" d="M 3366 3391
L 3366 2478
@@ -1298,7 +1298,7 @@ z
</g>
<g id="text_13">
<!-- masse commune -->
<g style="fill: #6b7280" transform="translate(220.671689 143.617323) scale(0.075 -0.075)">
<g style="fill: #6b7280" transform="translate(294.018146 184.365354) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-50" d="M 3328 2828
Q 3544 3216 3844 3400
@@ -1369,7 +1369,7 @@ z
</g>
<g id="text_14">
<!-- Serial2.begin(9600, SERIAL_8N1, 17, 18); -->
<g style="fill: #6b7280" transform="translate(91.509486 152.348031) scale(0.075 -0.075)">
<g style="fill: #6b7280" transform="translate(143.666966 195.703937) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSansMono-36" d="M 3163 4506
L 3163 3866
@@ -1980,8 +1980,8 @@ z
</g>
</g>
<defs>
<clipPath id="p339f6ebe6d">
<rect x="7.2" y="7.2" width="349.228346" height="148.422047"/>
<clipPath id="p39a3ba2e0c">
<rect x="7.2" y="7.2" width="453.543307" height="192.755906"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB