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
+116 -116
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="186.831496pt" viewBox="0 0 363.628346 186.831496" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="467.943307pt" height="238.337008pt" viewBox="0 0 467.943307 238.337008" 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,83 +20,83 @@
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 186.831496
L 363.628346 186.831496
L 363.628346 0
<path d="M 0 238.337008
L 467.943307 238.337008
L 467.943307 0
L 0 0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="line2d_1">
<path d="M 65.404724 167.626772
L 65.404724 29.026772
" clip-path="url(#p1d19c354d5)" style="fill: none; stroke-dasharray: 3,3; stroke-dashoffset: 0; stroke: #6b7280"/>
<path d="M 82.790551 215.546457
L 82.790551 35.546457
" clip-path="url(#p30d9855426)" style="fill: none; stroke-dasharray: 3,3; stroke-dashoffset: 0; stroke: #6b7280"/>
</g>
<g id="line2d_2">
<path d="M 181.814173 167.626772
L 181.814173 29.026772
" clip-path="url(#p1d19c354d5)" style="fill: none; stroke-dasharray: 3,3; stroke-dashoffset: 0; stroke: #6b7280"/>
<path d="M 233.971654 215.546457
L 233.971654 35.546457
" clip-path="url(#p30d9855426)" style="fill: none; stroke-dasharray: 3,3; stroke-dashoffset: 0; stroke: #6b7280"/>
</g>
<g id="line2d_3">
<path d="M 298.223622 167.626772
L 298.223622 29.026772
" clip-path="url(#p1d19c354d5)" style="fill: none; stroke-dasharray: 3,3; stroke-dashoffset: 0; stroke: #6b7280"/>
<path d="M 385.152756 215.546457
L 385.152756 35.546457
" clip-path="url(#p30d9855426)" style="fill: none; stroke-dasharray: 3,3; stroke-dashoffset: 0; stroke: #6b7280"/>
</g>
<g id="patch_2">
<path d="M 41.395276 29.026772
L 89.414173 29.026772
Q 92.688189 29.026772 92.688189 25.752756
L 92.688189 14.83937
Q 92.688189 11.565354 89.414173 11.565354
L 41.395276 11.565354
Q 38.12126 11.565354 38.12126 14.83937
L 38.12126 25.752756
Q 38.12126 29.026772 41.395276 29.026772
<path d="M 51.609449 35.546457
L 113.971654 35.546457
Q 118.223622 35.546457 118.223622 31.294488
L 118.223622 17.12126
Q 118.223622 12.869291 113.971654 12.869291
L 51.609449 12.869291
Q 47.35748 12.869291 47.35748 17.12126
L 47.35748 31.294488
Q 47.35748 35.546457 51.609449 35.546457
z
" clip-path="url(#p1d19c354d5)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p30d9855426)" style="fill: #e8f0fe; stroke: #1f5fa8; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_3">
<path d="M 155.622047 29.026772
L 208.006299 29.026772
Q 211.280315 29.026772 211.280315 25.752756
L 211.280315 14.83937
Q 211.280315 11.565354 208.006299 11.565354
L 155.622047 11.565354
Q 152.348031 11.565354 152.348031 14.83937
L 152.348031 25.752756
Q 152.348031 29.026772 155.622047 29.026772
<path d="M 199.955906 35.546457
L 267.987402 35.546457
Q 272.23937 35.546457 272.23937 31.294488
L 272.23937 17.12126
Q 272.23937 12.869291 267.987402 12.869291
L 199.955906 12.869291
Q 195.703937 12.869291 195.703937 17.12126
L 195.703937 31.294488
Q 195.703937 35.546457 199.955906 35.546457
z
" clip-path="url(#p1d19c354d5)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p30d9855426)" style="fill: #f3f4f6; stroke: #6b7280; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="patch_4">
<path d="M 252.387402 29.026772
L 344.059843 29.026772
Q 347.333858 29.026772 347.333858 25.752756
L 347.333858 14.83937
Q 347.333858 11.565354 344.059843 11.565354
L 252.387402 11.565354
Q 249.113386 11.565354 249.113386 14.83937
L 249.113386 25.752756
Q 249.113386 29.026772 252.387402 29.026772
<path d="M 325.625197 35.546457
L 444.680315 35.546457
Q 448.932283 35.546457 448.932283 31.294488
L 448.932283 17.12126
Q 448.932283 12.869291 444.680315 12.869291
L 325.625197 12.869291
Q 321.373228 12.869291 321.373228 17.12126
L 321.373228 31.294488
Q 321.373228 35.546457 325.625197 35.546457
z
" clip-path="url(#p1d19c354d5)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
" clip-path="url(#p30d9855426)" style="fill: #e6f4ea; stroke: #2e8b57; stroke-width: 1.4; stroke-linejoin: miter"/>
</g>
<g id="line2d_4">
<path d="M 65.404724 126.810709
L 75.226772 126.810709
L 75.226772 134.231811
" clip-path="url(#p1d19c354d5)" style="fill: none; stroke: #1f2937; stroke-width: 1.1; stroke-linecap: square"/>
<path d="M 82.790551 162.538583
L 95.546457 162.538583
L 95.546457 172.176378
" clip-path="url(#p30d9855426)" style="fill: none; stroke: #1f2937; stroke-width: 1.1; stroke-linecap: square"/>
</g>
<g id="line2d_5">
<path d="M 65.404724 147.546142
L 75.226772 147.546142
L 75.226772 154.967244
" clip-path="url(#p1d19c354d5)" style="fill: none; stroke: #1f2937; stroke-width: 1.1; stroke-linecap: square"/>
<path d="M 82.790551 189.467717
L 95.546457 189.467717
L 95.546457 199.105512
" clip-path="url(#p30d9855426)" style="fill: none; stroke: #1f2937; stroke-width: 1.1; stroke-linecap: square"/>
</g>
<g id="text_1">
<!-- ESP32-S3 -->
<g style="fill: #1f2937" transform="translate(42.630037 23.38993) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(60.015864 27.301741) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-Bold-28" d="M 588 4666
L 3834 4666
@@ -239,7 +239,7 @@ z
</g>
<g id="text_2">
<!-- Box Wi-Fi -->
<g style="fill: #1f2937" transform="translate(159.165658 23.464969) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(211.323138 27.37678) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-Bold-25" d="M 2456 2859
Q 2741 2859 2887 2984
@@ -366,7 +366,7 @@ z
</g>
<g id="text_3">
<!-- api.open-meteo.com -->
<g style="fill: #1f2937" transform="translate(248.980731 22.641532) scale(0.085 -0.085)">
<g style="fill: #1f2937" transform="translate(335.909865 26.553343) scale(0.085 -0.085)">
<defs>
<path id="DejaVuSans-Bold-44" d="M 2106 1575
Q 1756 1575 1579 1456
@@ -577,26 +577,26 @@ z
</g>
</g>
<g id="patch_5">
<path d="M 65.404724 46.488189
Q 123.609449 46.488189 180.360729 46.488189
<path d="M 82.790551 58.223622
Q 158.381102 58.223622 232.518209 58.223622
" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 175.960729 44.288189
L 180.360729 46.488189
L 175.960729 48.688189
<path d="M 228.118209 56.023622
L 232.518209 58.223622
L 228.118209 60.423622
z
" style="fill: #1f2937; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_4">
<g id="patch_6">
<path d="M 65.495793 45.522047
L 181.723105 45.522047
L 181.723105 36.161438
L 65.495793 36.161438
<path d="M 100.267446 56.735906
L 216.494759 56.735906
L 216.494759 47.375296
L 100.267446 47.375296
z
" style="fill: #ffffff"/>
</g>
<!-- WiFi.begin(ssid, motDePasse) -->
<g style="fill: #1f2937" transform="translate(66.275793 42.868219) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(101.047446 54.082077) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-3a" d="M 213 4666
L 850 4666
@@ -1021,26 +1021,26 @@ z
</g>
</g>
<g id="patch_7">
<path d="M 181.814173 67.223622
Q 123.609449 67.223622 66.858169 67.223622
<path d="M 233.971654 85.152756
Q 158.381102 85.152756 84.243995 85.152756
" style="fill: none; stroke-dasharray: 4.81,2.08; stroke-dashoffset: 0; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 71.258169 69.423622
L 66.858169 67.223622
L 71.258169 65.023622
<path d="M 88.643995 87.352756
L 84.243995 85.152756
L 88.643995 82.952756
z
" style="fill: #1f2937; stroke-dasharray: 4.81,2.08; stroke-dashoffset: 0; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_5">
<g id="patch_8">
<path d="M 61.981527 66.25748
L 185.237371 66.25748
L 185.237371 56.584871
L 61.981527 56.584871
<path d="M 96.75318 83.665039
L 220.009024 83.665039
L 220.009024 73.99243
L 96.75318 73.99243
z
" style="fill: #ffffff"/>
</g>
<!-- connecté : adresse IP attribuée -->
<g style="fill: #1f2937" transform="translate(62.761527 63.603652) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(97.53318 81.011211) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-46" d="M 3122 3366
L 3122 2828
@@ -1188,26 +1188,26 @@ z
</g>
</g>
<g id="patch_9">
<path d="M 65.404724 87.959055
Q 181.814173 87.959055 296.770178 87.959055
<path d="M 82.790551 112.08189
Q 233.971654 112.08189 383.699312 112.08189
" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 292.370178 85.759055
L 296.770178 87.959055
L 292.370178 90.159055
<path d="M 379.299312 109.88189
L 383.699312 112.08189
L 379.299312 114.28189
z
" style="fill: #1f2937; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_6">
<g id="patch_10">
<path d="M 96.155548 86.992913
L 267.472798 86.992913
L 267.472798 77.632304
L 96.155548 77.632304
<path d="M 148.313029 110.594173
L 319.630279 110.594173
L 319.630279 101.233564
L 148.313029 101.233564
z
" style="fill: #ffffff"/>
</g>
<!-- http.GET() → GET /v1/forecast?latitude=… -->
<g style="fill: #1f2937" transform="translate(96.935548 84.339085) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(149.093029 107.940345) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-4b" d="M 3513 2113
L 3513 0
@@ -1488,26 +1488,26 @@ z
</g>
</g>
<g id="patch_11">
<path d="M 298.223622 108.694488
Q 181.814173 108.694488 66.858169 108.694488
<path d="M 385.152756 139.011024
Q 233.971654 139.011024 84.243995 139.011024
" style="fill: none; stroke-dasharray: 4.81,2.08; stroke-dashoffset: 0; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 71.258169 110.894488
L 66.858169 108.694488
L 71.258169 106.494488
<path d="M 88.643995 141.211024
L 84.243995 139.011024
L 88.643995 136.811024
z
" style="fill: #1f2937; stroke-dasharray: 4.81,2.08; stroke-dashoffset: 0; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_7">
<g id="patch_12">
<path d="M 64.711189 107.728346
L 298.917158 107.728346
L 298.917158 98.367737
L 64.711189 98.367737
<path d="M 116.868669 137.523307
L 351.074638 137.523307
L 351.074638 128.162698
L 116.868669 128.162698
z
" style="fill: #ffffff"/>
</g>
<!-- 200 OK + {"current_weather": {"temperature": 14.2, …}} -->
<g style="fill: #1f2937" transform="translate(65.491189 105.074518) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(117.648669 134.869479) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-15" d="M 1228 531
L 3431 531
@@ -1783,26 +1783,26 @@ z
</g>
</g>
<g id="patch_13">
<path d="M 75.226772 134.231811
Q 70.534016 134.231811 67.294704 134.231811
<path d="M 95.546457 172.176378
Q 89.451969 172.176378 84.810925 172.176378
" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 71.694704 136.431811
L 67.294704 134.231811
L 71.694704 132.031811
<path d="M 89.210925 174.376378
L 84.810925 172.176378
L 89.210925 169.976378
z
" style="fill: #1f2937; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_8">
<g id="patch_14">
<path d="M 77.720787 135.201565
L 224.509475 135.201565
L 224.509475 125.840955
L 77.720787 125.840955
<path d="M 99.018425 172.037785
L 245.807113 172.037785
L 245.807113 162.677176
L 99.018425 162.677176
z
" style="fill: #ffffff"/>
</g>
<!-- deserializeJson() puis affichage OLED -->
<g style="fill: #1f2937" transform="translate(78.500787 132.547736) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(99.798425 169.383957) scale(0.078 -0.078)">
<defs>
<path id="DejaVuSans-5d" d="M 353 3500
L 3084 3500
@@ -1922,26 +1922,26 @@ z
</g>
</g>
<g id="patch_15">
<path d="M 75.226772 154.967244
Q 70.534016 154.967244 67.294704 154.967244
<path d="M 95.546457 199.105512
Q 89.451969 199.105512 84.810925 199.105512
" style="fill: none; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
<path d="M 71.694704 157.167244
L 67.294704 154.967244
L 71.694704 152.767244
<path d="M 89.210925 201.305512
L 84.810925 199.105512
L 89.210925 196.905512
z
" style="fill: #1f2937; stroke: #1f2937; stroke-width: 1.3; stroke-linecap: round"/>
</g>
<g id="text_9">
<g id="patch_16">
<path d="M 77.720787 155.936998
L 118.55135 155.936998
L 118.55135 146.576388
L 77.720787 146.576388
<path d="M 99.018425 198.966919
L 139.848988 198.966919
L 139.848988 189.606309
L 99.018425 189.606309
z
" style="fill: #ffffff"/>
</g>
<!-- http.end() -->
<g style="fill: #1f2937" transform="translate(78.500787 153.283169) scale(0.078 -0.078)">
<g style="fill: #1f2937" transform="translate(99.798425 196.313091) scale(0.078 -0.078)">
<use xlink:href="#DejaVuSans-4b"/>
<use xlink:href="#DejaVuSans-57" transform="translate(63.375 0)"/>
<use xlink:href="#DejaVuSans-57" transform="translate(102.578125 0)"/>
@@ -1957,8 +1957,8 @@ z
</g>
</g>
<defs>
<clipPath id="p1d19c354d5">
<rect x="7.2" y="7.2" width="349.228346" height="172.431496"/>
<clipPath id="p30d9855426">
<rect x="7.2" y="7.2" width="453.543307" height="223.937008"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB