SPB Git

Repository Public MIT Research preview

S04-F04-matrice-scores.tex 2.1 KB 36 lines latex

1% S04-F04 — Matrice des scores : six requêtes × cinq critères, sur le même jeu de douze messages.2% DONNÉES : S04-F04-donnees.tex, généré par demos/src/atlas_s04/exporter_donnees_figure.py (jamais saisi à la main).3% Idée : un score global cache l'essentiel. Lue critère par critère, la matrice montre ce que chaque4% composante ajoutée a changé (cellules encadrées) et ce qu'elle a laissé intact.5\input{S04-F04-donnees.tex}6\begin{tikzpicture}[x=1mm, y=1mm]7  \newcommand{\AtlasLigne}[3]{%8    \pgfmathsetmacro{\y}{43.4 - #1*6}9    \node[atlas label, anchor=east] at (37,\y) {#2};10    \fill[atlasFlow, fill opacity=.85] (112,\y-1.9) rectangle ++(#3*0.4+0.01,3.8);11    \node[atlas label, anchor=west, font=\AtlasTabularFont\AtlasSizeLabel\bfseries] at (112.8+#3*0.4,\y) {#3};}12  \newcommand{\AtlasCellule}[4]{%13    \pgfmathsetmacro{\x}{26 + #1*14}14    \pgfmathsetmacro{\y}{43.4 - #2*6}15    \pgfmathsetmacro{\teinte}{#3/\AtlasFigTaille*.6}16    \fill[atlasValid, fill opacity=\teinte] (\x,\y-2.6) rectangle ++(13,5.2);17    \ifnum#4=118      \draw[atlasFlow, line width=1.3pt] (\x,\y-2.6) rectangle ++(13,5.2);19      \node[atlas label, font=\AtlasTabularFont\AtlasSizeLabel\bfseries] at (\x+6.5,\y) {#3};20    \else21      \draw[atlasRule, line width=.5pt] (\x,\y-2.6) rectangle ++(13,5.2);22      \node[atlas label, font=\AtlasTabularFont\AtlasSizeLabel] at (\x+6.5,\y) {#3};23    \fi}24  \AtlasFigCellules25  \AtlasFigLignes26  \foreach \nom [count=\i] in {format, champs, catégorie, urgence, longueur}{27    \node[atlas note, anchor=base] at (32.5+\i*14,41.4) {\nom};}28  \node[atlas heading, anchor=south] at (74.5,45) {Points sur \AtlasFigTaille, par critère de la grille};29  \node[atlas heading, anchor=south west] at (112,45) {Total sur \AtlasFigMaximum};30  \node[atlas note, anchor=base east] at (37,41.4) {requête};31  % Légende32  \draw[atlasFlow, line width=1.3pt] (40,-1.6) rectangle ++(5,3.2);33  \node[atlas note, anchor=west] at (46,0) {score modifié par la composante ajoutée};34  \node[atlas note, anchor=west] at (104,0) {teinte : part des messages réussis};35\end{tikzpicture}36
Files main
Menu

Theme