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
+96 -96
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="154.091339pt" viewBox="0 0 363.628346 154.091339" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="467.943307pt" height="195.817323pt" viewBox="0 0 467.943307 195.817323" 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,72 +20,72 @@
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 154.091339
L 363.628346 154.091339
L 363.628346 0
L 0 0
<path d="M 0 195.817323
L 467.943307 195.817323
L 467.943307 -0
L 0 -0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 19.204724 125.064567
L 82.502362 125.064567
Q 85.776378 125.064567 85.776378 121.790551
L 85.776378 32.300787
Q 85.776378 29.026772 82.502362 29.026772
L 19.204724 29.026772
Q 15.930709 29.026772 15.930709 32.300787
L 15.930709 121.790551
Q 15.930709 125.064567 19.204724 125.064567
<path d="M 22.790551 160.270866
L 104.995276 160.270866
Q 109.247244 160.270866 109.247244 156.018898
L 109.247244 39.798425
Q 109.247244 35.546457 104.995276 35.546457
L 22.790551 35.546457
Q 18.538583 35.546457 18.538583 39.798425
L 18.538583 156.018898
Q 18.538583 160.270866 22.790551 160.270866
z
" clip-path="url(#p724d8cc1c3)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pbd4e386d54)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_3">
<path d="M 176.35748 141.434646
L 230.924409 141.434646
Q 234.198425 141.434646 234.198425 138.16063
L 234.198425 120.699213
Q 234.198425 117.425197 230.924409 117.425197
L 176.35748 117.425197
Q 173.083465 117.425197 173.083465 120.699213
L 173.083465 138.16063
Q 173.083465 141.434646 176.35748 141.434646
<path d="M 226.885039 181.530709
L 297.751181 181.530709
Q 302.00315 181.530709 302.00315 177.27874
L 302.00315 154.601575
Q 302.00315 150.349606 297.751181 150.349606
L 226.885039 150.349606
Q 222.633071 150.349606 222.633071 154.601575
L 222.633071 177.27874
Q 222.633071 181.530709 226.885039 181.530709
z
" clip-path="url(#p724d8cc1c3)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pbd4e386d54)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_4">
<path d="M 274.577953 141.434646
L 329.144882 141.434646
Q 332.418898 141.434646 332.418898 138.16063
L 332.418898 120.699213
Q 332.418898 117.425197 329.144882 117.425197
L 274.577953 117.425197
Q 271.303937 117.425197 271.303937 120.699213
L 271.303937 138.16063
Q 271.303937 141.434646 274.577953 141.434646
<path d="M 354.444094 181.530709
L 425.310236 181.530709
Q 429.562205 181.530709 429.562205 177.27874
L 429.562205 154.601575
Q 429.562205 150.349606 425.310236 150.349606
L 354.444094 150.349606
Q 350.192126 150.349606 350.192126 154.601575
L 350.192126 177.27874
Q 350.192126 181.530709 354.444094 181.530709
z
" clip-path="url(#p724d8cc1c3)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pbd4e386d54)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="line2d_1">
<path d="M 85.776378 55.218898
L 343.332283 55.218898
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #e07a1f; stroke-width: 2; stroke-linecap: square"/>
<path d="M 109.247244 69.562205
L 443.735433 69.562205
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #e07a1f; stroke-width: 2; stroke-linecap: square"/>
</g>
<g id="line2d_2">
<path d="M 85.776378 70.497638
L 343.332283 70.497638
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #1f5fa8; stroke-width: 2; stroke-linecap: square"/>
<path d="M 109.247244 89.404724
L 443.735433 89.404724
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #1f5fa8; stroke-width: 2; stroke-linecap: square"/>
</g>
<g id="line2d_3">
<path d="M 85.776378 85.776378
L 343.332283 85.776378
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #2e8b57; stroke-width: 2; stroke-linecap: square"/>
<path d="M 109.247244 109.247244
L 443.735433 109.247244
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #2e8b57; stroke-width: 2; stroke-linecap: square"/>
</g>
<g id="line2d_4">
<path d="M 183.99685 117.425197
L 183.99685 55.218898
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #e07a1f; stroke-width: 1.4; stroke-linecap: square"/>
<path d="M 236.806299 150.349606
L 236.806299 69.562205
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #e07a1f; stroke-width: 1.4; stroke-linecap: square"/>
</g>
<g id="line2d_5">
<defs>
@@ -101,14 +101,14 @@ C -0.909265 1.565609 -0.464105 1.75 0 1.75
z
" style="stroke: #e07a1f"/>
</defs>
<g clip-path="url(#p724d8cc1c3)">
<use xlink:href="#mcd9520536b" x="183.99685" y="55.218898" style="fill: #e07a1f; stroke: #e07a1f"/>
<g clip-path="url(#pbd4e386d54)">
<use xlink:href="#mcd9520536b" x="236.806299" y="69.562205" style="fill: #e07a1f; stroke: #e07a1f"/>
</g>
</g>
<g id="line2d_6">
<path d="M 197.092913 117.425197
L 197.092913 70.497638
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #1f5fa8; stroke-width: 1.4; stroke-linecap: square"/>
<path d="M 253.814173 150.349606
L 253.814173 89.404724
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #1f5fa8; stroke-width: 1.4; stroke-linecap: square"/>
</g>
<g id="line2d_7">
<defs>
@@ -124,14 +124,14 @@ C -0.909265 1.565609 -0.464105 1.75 0 1.75
z
" style="stroke: #1f5fa8"/>
</defs>
<g clip-path="url(#p724d8cc1c3)">
<use xlink:href="#mee076df601" x="197.092913" y="70.497638" style="fill: #1f5fa8; stroke: #1f5fa8"/>
<g clip-path="url(#pbd4e386d54)">
<use xlink:href="#mee076df601" x="253.814173" y="89.404724" style="fill: #1f5fa8; stroke: #1f5fa8"/>
</g>
</g>
<g id="line2d_8">
<path d="M 210.188976 117.425197
L 210.188976 85.776378
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #2e8b57; stroke-width: 1.4; stroke-linecap: square"/>
<path d="M 270.822047 150.349606
L 270.822047 109.247244
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #2e8b57; stroke-width: 1.4; stroke-linecap: square"/>
</g>
<g id="line2d_9">
<defs>
@@ -147,55 +147,55 @@ C -0.909265 1.565609 -0.464105 1.75 0 1.75
z
" style="stroke: #2e8b57"/>
</defs>
<g clip-path="url(#p724d8cc1c3)">
<use xlink:href="#m2ee81f127e" x="210.188976" y="85.776378" style="fill: #2e8b57; stroke: #2e8b57"/>
<g clip-path="url(#pbd4e386d54)">
<use xlink:href="#m2ee81f127e" x="270.822047" y="109.247244" style="fill: #2e8b57; stroke: #2e8b57"/>
</g>
</g>
<g id="line2d_10">
<path d="M 85.776378 105.420472
L 223.285039 105.420472
L 223.285039 117.425197
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #1f2937; stroke-width: 1.4; stroke-linecap: square"/>
<path d="M 109.247244 134.759055
L 287.829921 134.759055
L 287.829921 150.349606
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #1f2937; stroke-width: 1.4; stroke-linecap: square"/>
</g>
<g id="line2d_11">
<path d="M 282.217323 117.425197
L 282.217323 55.218898
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #e07a1f; stroke-width: 1.4; stroke-linecap: square"/>
<path d="M 364.365354 150.349606
L 364.365354 69.562205
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #e07a1f; stroke-width: 1.4; stroke-linecap: square"/>
</g>
<g id="line2d_12">
<g clip-path="url(#p724d8cc1c3)">
<use xlink:href="#mcd9520536b" x="282.217323" y="55.218898" style="fill: #e07a1f; stroke: #e07a1f"/>
<g clip-path="url(#pbd4e386d54)">
<use xlink:href="#mcd9520536b" x="364.365354" y="69.562205" style="fill: #e07a1f; stroke: #e07a1f"/>
</g>
</g>
<g id="line2d_13">
<path d="M 295.313386 117.425197
L 295.313386 70.497638
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #1f5fa8; stroke-width: 1.4; stroke-linecap: square"/>
<path d="M 381.373228 150.349606
L 381.373228 89.404724
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #1f5fa8; stroke-width: 1.4; stroke-linecap: square"/>
</g>
<g id="line2d_14">
<g clip-path="url(#p724d8cc1c3)">
<use xlink:href="#mee076df601" x="295.313386" y="70.497638" style="fill: #1f5fa8; stroke: #1f5fa8"/>
<g clip-path="url(#pbd4e386d54)">
<use xlink:href="#mee076df601" x="381.373228" y="89.404724" style="fill: #1f5fa8; stroke: #1f5fa8"/>
</g>
</g>
<g id="line2d_15">
<path d="M 308.409449 117.425197
L 308.409449 85.776378
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke: #2e8b57; stroke-width: 1.4; stroke-linecap: square"/>
<path d="M 398.381102 150.349606
L 398.381102 109.247244
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke: #2e8b57; stroke-width: 1.4; stroke-linecap: square"/>
</g>
<g id="line2d_16">
<g clip-path="url(#p724d8cc1c3)">
<use xlink:href="#m2ee81f127e" x="308.409449" y="85.776378" style="fill: #2e8b57; stroke: #2e8b57"/>
<g clip-path="url(#pbd4e386d54)">
<use xlink:href="#m2ee81f127e" x="398.381102" y="109.247244" style="fill: #2e8b57; stroke: #2e8b57"/>
</g>
</g>
<g id="line2d_17">
<path d="M 85.776378 115.24252
L 321.505512 115.24252
L 321.505512 117.425197
" clip-path="url(#p724d8cc1c3)" style="fill: none; stroke-dasharray: 5.18,2.24; stroke-dashoffset: 0; stroke: #1f2937; stroke-width: 1.4"/>
<path d="M 109.247244 147.514961
L 415.388976 147.514961
L 415.388976 150.349606
" clip-path="url(#pbd4e386d54)" style="fill: none; stroke-dasharray: 5.18,2.24; stroke-dashoffset: 0; stroke: #1f2937; stroke-width: 1.4"/>
</g>
<g id="text_1">
<!-- ESP32-S3 -->
<g style="fill: #1f5fa8" transform="translate(25.399481 44.156002) scale(0.095 -0.095)">
<g style="fill: #1f5fa8" transform="translate(38.438851 56.217419) scale(0.095 -0.095)">
<defs>
<path id="DejaVuSans-Bold-28" d="M 588 4666
L 3834 4666
@@ -336,7 +336,7 @@ z
<use xlink:href="#DejaVuSans-Bold-16" transform="translate(466.296875 0)"/>
</g>
<!-- maître -->
<g style="fill: #1f5fa8" transform="translate(33.235496 55.9386) scale(0.095 -0.095)">
<g style="fill: #1f5fa8" transform="translate(46.274867 68.000017) scale(0.095 -0.095)">
<defs>
<path id="DejaVuSans-Bold-50" d="M 3781 2919
Q 3994 3244 4286 3414
@@ -493,7 +493,7 @@ z
</g>
<g id="text_2">
<!-- SCK — horloge -->
<g style="fill: #e07a1f" transform="translate(89.050394 51.550881) scale(0.08 -0.08)">
<g style="fill: #e07a1f" transform="translate(113.499213 65.372613) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-36" d="M 3425 4513
L 3425 3897
@@ -710,7 +710,7 @@ z
</g>
<g id="text_3">
<!-- MOSI — maître → esclave -->
<g style="fill: #1f5fa8" transform="translate(89.050394 66.829621) scale(0.08 -0.08)">
<g style="fill: #1f5fa8" transform="translate(113.499213 85.215133) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-30" d="M 628 4666
L 1569 4666
@@ -962,7 +962,7 @@ z
</g>
<g id="text_4">
<!-- MISO — esclave → maître -->
<g style="fill: #2e8b57" transform="translate(89.050394 82.108361) scale(0.08 -0.08)">
<g style="fill: #2e8b57" transform="translate(113.499213 105.057653) scale(0.08 -0.08)">
<use xlink:href="#DejaVuSans-30"/>
<use xlink:href="#DejaVuSans-2c" transform="translate(86.28125 0)"/>
<use xlink:href="#DejaVuSans-36" transform="translate(115.78125 0)"/>
@@ -990,7 +990,7 @@ z
</g>
<g id="text_5">
<!-- Écran TFT -->
<g style="fill: #1f2937" transform="translate(182.661218 133.310703) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(241.338384 169.820939) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-8b" d="M 628 4666
L 3578 4666
@@ -1070,7 +1070,7 @@ z
</g>
<g id="text_6">
<!-- CS1 -->
<g style="fill: #1f2937" transform="translate(89.050394 102.237038) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(113.499213 131.18444) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-14" d="M 794 531
L 1825 531
@@ -1094,7 +1094,7 @@ z
</g>
<g id="text_7">
<!-- Carte SD -->
<g style="fill: #1f2937" transform="translate(282.93962 132.523788) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(370.955368 169.034025) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-27" d="M 1259 4147
L 1259 519
@@ -1128,7 +1128,7 @@ z
</g>
<g id="text_8">
<!-- CS2 -->
<g style="fill: #1f2937" transform="translate(89.050394 112.059085) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(113.499213 143.940345) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-15" d="M 1228 531
L 3431 531
@@ -1162,7 +1162,7 @@ z
</g>
<g id="text_9">
<!-- SCK, MOSI, MISO : partagés -->
<g style="fill: #6b7280" transform="translate(235.48144 17.169761) scale(0.078 -0.078)">
<g style="fill: #6b7280" transform="translate(335.884589 22.385509) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-Oblique-36" d="M 3859 4513
L 3738 3897
@@ -1556,7 +1556,7 @@ z
<use xlink:href="#DejaVuSans-Oblique-56" transform="translate(1330.609375 0)"/>
</g>
<!-- CS (Chip Select) : une ligne par périphérique, -->
<g style="fill: #6b7280" transform="translate(166.130908 26.843894) scale(0.078 -0.078)">
<g style="fill: #6b7280" transform="translate(266.534058 32.059642) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-Oblique-b" d="M 2731 4856
Q 1903 3822 1495 2892
@@ -1809,7 +1809,7 @@ z
<use xlink:href="#DejaVuSans-Oblique-f" transform="translate(2240.03125 0)"/>
</g>
<!-- le maître met à 0 celle de son interlocuteur -->
<g style="fill: #6b7280" transform="translate(173.623783 36.518027) scale(0.078 -0.078)">
<g style="fill: #6b7280" transform="translate(274.026933 41.733775) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-Oblique-50" d="M 5747 2113
L 5338 0
@@ -2044,8 +2044,8 @@ z
</g>
</g>
<defs>
<clipPath id="p724d8cc1c3">
<rect x="7.2" y="7.2" width="349.228346" height="139.691339"/>
<clipPath id="pbd4e386d54">
<rect x="7.2" y="7.2" width="453.543307" height="181.417323"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB