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
+110 -110
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="136.629921pt" viewBox="0 0 363.628346 136.629921" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="467.943307pt" height="173.140157pt" viewBox="0 0 467.943307 173.140157" 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,108 +20,108 @@
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 136.629921
L 363.628346 136.629921
L 363.628346 0
<path d="M 0 173.140157
L 467.943307 173.140157
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 114.151181
L 215.645669 114.151181
Q 218.919685 114.151181 218.919685 110.877165
L 218.919685 17.022047
Q 218.919685 13.748031 215.645669 13.748031
L 17.022047 13.748031
Q 13.748031 13.748031 13.748031 17.022047
L 13.748031 110.877165
Q 13.748031 114.151181 17.022047 114.151181
<path d="M 19.955906 146.097638
L 277.908661 146.097638
Q 282.16063 146.097638 282.16063 141.845669
L 282.16063 19.955906
Q 282.16063 15.703937 277.908661 15.703937
L 19.955906 15.703937
Q 15.703937 15.703937 15.703937 19.955906
L 15.703937 141.845669
Q 15.703937 146.097638 19.955906 146.097638
z
" clip-path="url(#p08764c0225)" style="fill: #f9fafb; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pf869524452)" style="fill: #f9fafb; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_3">
<path d="M 248.385827 114.151181
L 342.240945 114.151181
Q 345.514961 114.151181 345.514961 110.877165
L 345.514961 17.022047
Q 345.514961 13.748031 342.240945 13.748031
L 248.385827 13.748031
Q 245.111811 13.748031 245.111811 17.022047
L 245.111811 110.877165
Q 245.111811 114.151181 248.385827 114.151181
<path d="M 320.428346 146.097638
L 442.31811 146.097638
Q 446.570079 146.097638 446.570079 141.845669
L 446.570079 19.955906
Q 446.570079 15.703937 442.31811 15.703937
L 320.428346 15.703937
Q 316.176378 15.703937 316.176378 19.955906
L 316.176378 141.845669
Q 316.176378 146.097638 320.428346 146.097638
z
" clip-path="url(#p08764c0225)" style="fill: #f5f8fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pf869524452)" style="fill: #f5f8fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_4">
<path d="M 25.752756 72.680315
L 75.954331 72.680315
Q 79.228346 72.680315 79.228346 69.406299
L 79.228346 45.39685
Q 79.228346 42.122835 75.954331 42.122835
L 25.752756 42.122835
Q 22.47874 42.122835 22.47874 45.39685
L 22.47874 69.406299
Q 22.47874 72.680315 25.752756 72.680315
<path d="M 31.294488 92.23937
L 96.491339 92.23937
Q 100.743307 92.23937 100.743307 87.987402
L 100.743307 56.806299
Q 100.743307 52.554331 96.491339 52.554331
L 31.294488 52.554331
Q 27.04252 52.554331 27.04252 56.806299
L 27.04252 87.987402
Q 27.04252 92.23937 31.294488 92.23937
z
" clip-path="url(#p08764c0225)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pf869524452)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_5">
<path d="M 104.329134 72.680315
L 154.530709 72.680315
Q 157.804724 72.680315 157.804724 69.406299
L 157.804724 45.39685
Q 157.804724 42.122835 154.530709 42.122835
L 104.329134 42.122835
Q 101.055118 42.122835 101.055118 45.39685
L 101.055118 69.406299
Q 101.055118 72.680315 104.329134 72.680315
<path d="M 133.341732 92.23937
L 198.538583 92.23937
Q 202.790551 92.23937 202.790551 87.987402
L 202.790551 56.806299
Q 202.790551 52.554331 198.538583 52.554331
L 133.341732 52.554331
Q 129.089764 52.554331 129.089764 56.806299
L 129.089764 87.987402
Q 129.089764 92.23937 133.341732 92.23937
z
" clip-path="url(#p08764c0225)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pf869524452)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_6">
<path d="M 43.214173 108.694488
L 154.530709 108.694488
Q 157.804724 108.694488 157.804724 105.420472
L 157.804724 92.324409
Q 157.804724 89.050394 154.530709 89.050394
L 43.214173 89.050394
Q 39.940157 89.050394 39.940157 92.324409
L 39.940157 105.420472
Q 39.940157 108.694488 43.214173 108.694488
<path d="M 53.971654 139.011024
L 198.538583 139.011024
Q 202.790551 139.011024 202.790551 134.759055
L 202.790551 117.751181
Q 202.790551 113.499213 198.538583 113.499213
L 53.971654 113.499213
Q 49.719685 113.499213 49.719685 117.751181
L 49.719685 134.759055
Q 49.719685 139.011024 53.971654 139.011024
z
" clip-path="url(#p08764c0225)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pf869524452)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_7">
<path d="M 263.664567 72.680315
L 326.962205 72.680315
Q 330.23622 72.680315 330.23622 69.406299
L 330.23622 45.39685
Q 330.23622 42.122835 326.962205 42.122835
L 263.664567 42.122835
Q 260.390551 42.122835 260.390551 45.39685
L 260.390551 69.406299
Q 260.390551 72.680315 263.664567 72.680315
<path d="M 340.270866 92.23937
L 422.475591 92.23937
Q 426.727559 92.23937 426.727559 87.987402
L 426.727559 56.806299
Q 426.727559 52.554331 422.475591 52.554331
L 340.270866 52.554331
Q 336.018898 52.554331 336.018898 56.806299
L 336.018898 87.987402
Q 336.018898 92.23937 340.270866 92.23937
z
" clip-path="url(#p08764c0225)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pf869524452)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_8">
<path d="M 263.664567 108.694488
L 326.962205 108.694488
Q 330.23622 108.694488 330.23622 105.420472
L 330.23622 92.324409
Q 330.23622 89.050394 326.962205 89.050394
L 263.664567 89.050394
Q 260.390551 89.050394 260.390551 92.324409
L 260.390551 105.420472
Q 260.390551 108.694488 263.664567 108.694488
<path d="M 340.270866 139.011024
L 422.475591 139.011024
Q 426.727559 139.011024 426.727559 134.759055
L 426.727559 117.751181
Q 426.727559 113.499213 422.475591 113.499213
L 340.270866 113.499213
Q 336.018898 113.499213 336.018898 117.751181
L 336.018898 134.759055
Q 336.018898 139.011024 340.270866 139.011024
z
" clip-path="url(#p08764c0225)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#pf869524452)" style="fill: #fdf0e3; stroke: #e07a1f; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="text_1">
<!-- Ordinateur — Arduino IDE -->
<g style="fill: #6b7280" transform="translate(20.296063 24.661417) scale(0.09 -0.09)">
<g style="fill: #6b7280" transform="translate(24.207874 29.877165) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-Bold-32" d="M 2719 3878
Q 2169 3878 1866 3472
@@ -443,7 +443,7 @@ z
</g>
<g id="text_2">
<!-- Carte ESP32-S3 -->
<g style="fill: #1f5fa8" transform="translate(251.659843 24.661417) scale(0.09 -0.09)">
<g style="fill: #1f5fa8" transform="translate(324.680315 29.877165) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-Bold-26" d="M 4288 256
Q 3956 84 3597 -3
@@ -598,7 +598,7 @@ z
</g>
<g id="text_3">
<!-- Croquis -->
<g style="fill: #1f2937" transform="translate(33.904012 54.035012) scale(0.09 -0.09)">
<g style="fill: #1f2937" transform="translate(46.943382 69.030288) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-26" d="M 4122 4306
L 4122 3641
@@ -761,7 +761,7 @@ z
<use xlink:href="#DejaVuSans-56" transform="translate(324.5625 0)"/>
</g>
<!-- (.ino) -->
<g style="fill: #1f2937" transform="translate(39.056512 66.077434) scale(0.09 -0.09)">
<g style="fill: #1f2937" transform="translate(52.095882 81.07271) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-b" d="M 1984 4856
Q 1566 4138 1362 3434
@@ -826,7 +826,7 @@ z
</g>
<g id="text_4">
<!-- Compilation -->
<g style="fill: #1f2937" transform="translate(102.416562 54.035012) scale(0.09 -0.09)">
<g style="fill: #1f2937" transform="translate(138.926798 69.030288) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-50" d="M 3328 2828
Q 3544 3216 3844 3400
@@ -959,7 +959,7 @@ z
<use xlink:href="#DejaVuSans-51" transform="translate(536.921875 0)"/>
</g>
<!-- ✓ Vérifier -->
<g style="fill: #1f2937" transform="translate(108.177968 66.786887) scale(0.09 -0.09)">
<g style="fill: #1f2937" transform="translate(144.688204 81.782163) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-fa3" d="M 1416 2044
Q 1538 2044 1600 1844
@@ -1089,7 +1089,7 @@ z
</g>
<g id="text_5">
<!-- Moniteur série — 115200 bauds -->
<g style="fill: #1f2937" transform="translate(30.851855 102.211347) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(61.635561 129.427079) scale(0.08075 -0.08075)">
<defs>
<path id="DejaVuSans-30" d="M 628 4666
L 1569 4666
@@ -1284,7 +1284,7 @@ z
</g>
<g id="text_6">
<!-- Mémoire Flash -->
<g style="fill: #1f2937" transform="translate(262.532995 55.086887) scale(0.09 -0.09)">
<g style="fill: #1f2937" transform="translate(348.592838 70.082163) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-29" d="M 628 4666
L 3309 4666
@@ -1334,7 +1334,7 @@ z
<use xlink:href="#DejaVuSans-4b" transform="translate(665.078125 0)"/>
</g>
<!-- (programme) -->
<g style="fill: #1f2937" transform="translate(265.44112 65.73009) scale(0.09 -0.09)">
<g style="fill: #1f2937" transform="translate(351.500963 80.725366) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-4a" d="M 2906 1791
Q 2906 2416 2648 2759
@@ -1386,7 +1386,7 @@ z
</g>
<g id="text_7">
<!-- Exécution -->
<g style="fill: #1f2937" transform="translate(273.230339 102.407753) scale(0.09 -0.09)">
<g style="fill: #1f2937" transform="translate(359.290181 129.790431) scale(0.09 -0.09)">
<defs>
<path id="DejaVuSans-28" d="M 628 4666
L 3578 4666
@@ -1452,28 +1452,28 @@ z
</g>
</g>
<g id="patch_9">
<path d="M 79.228346 57.401575
Q 90.141732 57.401575 99.601674 57.401575
<path d="M 100.743307 72.39685
Q 114.916535 72.39685 127.63632 72.39685
" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 95.201674 55.201575
L 99.601674 57.401575
L 95.201674 59.601575
<path d="M 123.23632 70.19685
L 127.63632 72.39685
L 123.23632 74.59685
z
" style="fill: #1f2937; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="patch_10">
<path d="M 157.804724 57.401575
Q 209.097638 57.401575 258.937107 57.401575
<path d="M 202.790551 72.39685
Q 269.404724 72.39685 334.565453 72.39685
" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 254.537107 55.201575
L 258.937107 57.401575
L 254.537107 59.601575
<path d="M 330.165453 70.19685
L 334.565453 72.39685
L 330.165453 74.59685
z
" style="fill: #1f2937; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_8">
<!-- Téléverser → -->
<g style="fill: #1f2937" transform="translate(184.014513 40.827912) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(244.321599 54.649644) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-37" d="M -19 4666
L 3928 4666
@@ -1524,7 +1524,7 @@ z
<use xlink:href="#DejaVuSans-c1c" transform="translate(543.28125 0)"/>
</g>
<!-- (câble USB) -->
<g style="fill: #1f2937" transform="translate(185.731388 50.7501) scale(0.08 -0.08)">
<g style="fill: #1f2937" transform="translate(246.038474 64.571832) scale(0.08 -0.08)">
<defs>
<path id="DejaVuSans-a4" d="M 2194 1759
Q 1497 1759 1228 1600
@@ -1663,28 +1663,28 @@ z
</g>
</g>
<g id="patch_11">
<path d="M 295.313386 72.680315
Q 295.313386 80.865354 295.313386 87.59695
<path d="M 381.373228 92.23937
Q 381.373228 102.869291 381.373228 112.045768
" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 297.513386 83.19695
L 295.313386 87.59695
L 293.113386 83.19695
<path d="M 383.573228 107.645768
L 381.373228 112.045768
L 379.173228 107.645768
z
" style="fill: #1f2937; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="patch_12">
<path d="M 260.390551 98.872441
Q 209.097638 98.872441 159.258169 98.872441
<path d="M 336.018898 126.255118
Q 269.404724 126.255118 204.243995 126.255118
" style="fill: none; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 163.658169 101.072441
L 159.258169 98.872441
L 163.658169 96.672441
<path d="M 208.643995 128.455118
L 204.243995 126.255118
L 208.643995 124.055118
z
" style="fill: #2e8b57; stroke: #2e8b57; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_9">
<!-- Serial.println() -->
<g style="fill: #2e8b57" transform="translate(180.342013 93.021747) scale(0.08 -0.08)">
<g style="fill: #2e8b57" transform="translate(240.649099 119.230881) 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)"/>
@@ -1705,7 +1705,7 @@ z
</g>
<g id="text_10">
<!-- Le même câble USB sert au téléversement et au moniteur série (USB CDC). -->
<g style="fill: #6b7280" transform="translate(39.591322 127.247244) scale(0.075 -0.075)">
<g style="fill: #6b7280" transform="translate(91.748802 163.105512) scale(0.075 -0.075)">
<defs>
<path id="DejaVuSans-Oblique-2f" d="M 1075 4666
L 1709 4666
@@ -2420,8 +2420,8 @@ z
</g>
</g>
<defs>
<clipPath id="p08764c0225">
<rect x="7.2" y="7.2" width="349.228346" height="122.229921"/>
<clipPath id="pf869524452">
<rect x="7.2" y="7.2" width="453.543307" height="158.740157"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB