Repository Public License Research preview
1% S03-F02 — Carte d'attention de la miniature, sans masque puis avec masque causal.2% Idée : le masque causal supprime les regards vers les jetons suivants (triangle supérieur) et chaque ligne3% redistribue ses poids sur ce qui reste ; la ligne du dernier jeton, elle, ne change pas.4% DONNÉES : S03-F02-donnees.tex, généré par demos/src/atlas_s03/exporter_donnees_figure.py (teintes comprises).5\input{S03-F02-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 \newcommand{\STcarte}[3]{% préfixe des données, abscisse du coin gauche, 1 = matrice masquée8 \foreach \j in {1,2,3} {9 \node[atlas label, anchor=south, font=\ttfamily\AtlasSizeLabel] at ({#2+15+(\j-1)*14.5+7.25},37.6) {\STval{F02-jeton-\j}};10 }11 \foreach \i in {1,2,3} {12 \node[atlas label, anchor=east, font=\ttfamily\AtlasSizeLabel] at ({#2+13.6},{41.6-\i*9}) {\STval{F02-jeton-\i}};13 \foreach \j in {1,2,3} {14 \edef\STteinte{\STval{F02-#1-teinte-\i-\j}}15 \pgfmathsetmacro{\STx}{#2+15+(\j-1)*14.5}16 \pgfmathsetmacro{\STy}{37.1-\i*9}17 \ifnum\numexpr#3*\j\relax>\i\relax18 \draw[atlasRule, line width=.6pt, fill=atlasBg] (\STx,\STy) rectangle ++(14.5,9);19 \draw[atlasRule, line width=.6pt] (\STx,\STy) -- ++(14.5,9);20 \node[atlas note, fill=atlasBg, inner sep=1.2pt] at ({\STx+7.25},{\STy+4.5}) {masqué};21 \else22 \draw[atlasRule, line width=.6pt, fill=atlasFlow!\STteinte!atlasPanel] (\STx,\STy) rectangle ++(14.5,9);23 \node[atlas label, font=\AtlasTabularFont\AtlasSizeSmall\bfseries] at ({\STx+7.25},{\STy+4.5}) {\STval{F02-#1-\i-\j}};24 \fi25 }26 }27 }28 % ---------- Sans masque ----------29 \node[atlas heading, anchor=west] at (0,49.6) {Sans masque};30 \node[atlas note, anchor=west] at (0,45) {chaque jeton voit toute la phrase};31 \STcarte{sm}{0}{0}32 \draw[atlas boundary, line width=1.1pt] (29.5,37.1) -- (58.5,37.1) -- (58.5,19.1) -- (44,19.1) -- (44,28.1) -- (29.5,28.1) -- cycle;33 \node[atlas note, anchor=north west, text=atlasHazard, text width=58mm] at (0,7.6)34 {Zone pointillée : regards vers les jetons suivants, impossibles pendant la génération.};35 % ---------- Flèche centrale ----------36 \draw[atlas arrow, line width=1.4pt] (63.5,23.6) -- (79,23.6);37 \node[atlas label, anchor=south, text width=17mm] at (71.2,25) {\textbf{masque causal}};38 % ---------- Avec masque ----------39 \node[atlas heading, anchor=west] at (83,49.6) {Avec masque causal};40 \node[atlas note, anchor=west] at (83,45) {chaque jeton voit lui-même et ce qui précède};41 \STcarte{am}{83}{1}42 \draw[atlasValid, line width=1.4pt] (98,10.1) rectangle (141.5,19.1);43 \node[atlas note, anchor=north west, text=atlasValid, text width=56mm] at (83,7.6)44 {Dernière ligne encadrée : inchangée. Les autres lignes redistribuent leurs poids ; chaque ligne totalise 1.};45\end{tikzpicture}46