Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 9
changement code Tikz

19 Jan '16, 14:46

pluton's gravatar image

pluton
1.2k22937

A priori, c'est la commande `minimum size` qui vous intéresse. Elle permet de fixer une taille commune à des nœuds de dimensions différentes. Sinon, quand vous faites un diagramme, évitez autant que possible d'entrer les coordonnées des nœuds à la main. C'est trop difficile à gérer quand on apporte une modification. TikZ est très puissant pour la gestion des coordonnées relatives : profitez-en ! \documentclass[11pt,tikz]{standalone} \usepackage[utf8]{inputenc} \usetikzlibrary{positioning} \tikzset{basic/.style = {draw,text width=2cm, rectangle,align=center}} \tikzset{trait/.style = {line width=2pt,gray}} \tikzset{fleche/.style = {trait,>=stealth,->}} \begin{document} \begin{tikzpicture} \node[basic,text width=7cm] (a) {653 effectifs}; \node[draw,below=.5cm of a.south east,anchor=north west,xshift=-2cm](b){\parbox[t][][c]{4.25cm}{2 inclusions redondantes\\ 2 oppositions au suivi\\ 3 dossiers incomplets\\ 3 inclusions inadaptées}}; \node[basic,text width=7cm,below=3.25cm of a] (f) {641 inclusions}; \node[basic,text width=5cm,minimum size=2cm,below=2cm of f,xshift=4cm](i){580 potentiels sans ECM}; \node[basic,text width=5cm,minimum size=2cm,below=2cm of f,xshift=-4cm](j){61 ECM}; \node[below=1cm of i.south west,anchor=north west,xshift=1cm] (L){36 coronarographies}; \node[below=.5cm of L.south west,anchor=north west] (zb){2 pontages}; \node[below=.5cm of zb.south west,anchor=north west] (zc){13 traitements médicaux}; \node[below=1cm of j.south west,anchor=north west,xshift=1cm](h){51 IDM}; \node[below=.5cm of h.south west,anchor=north west,text width=6cm](za){7 véccés de cause cardiaque ou potentielle}; \node[below=.5cm of za.south west,anchor=north west,text width=6cm](K){3 sténoses significatives stentées}; % flèches et traits \draw[fleche] (a.south)--(f.north); \draw[trait] (b.west)-|(a.south); \draw[fleche,rounded corners=16pt] (f.south)--++(0cm,-1cm)-|(j.north); \draw[fleche,rounded corners=16pt] (f.south)--++(0cm,-1cm)-|(i.north); \coordinate[left=0.5cm of h](hl); \draw[fleche](j.south-|hl.north)|-(hl)--(h.west); \draw[fleche](hl)|-(za.west); \draw[fleche](hl)|-(K.west); \coordinate[left=0.5cm of L](Ll); \draw[fleche](i.south-|Ll.north)|-(Ll)--(L.west); \draw[fleche](h)--(L.west); \draw[fleche](Ll)|-(zb.west); \draw[fleche](Ll)|-(zc.west); \end{tikzpicture} \end{document} ![alt text][1] [1]: http://texnique.fr:80/osqa/upfiles/diag_0jr5rEm.png
cliquez ici pour masquer/afficher la révision 8

17 Jan '16, 22:48

denis's gravatar image

denis
7.3k2510

A priori, c'est la commande `minimum size` qui vous intéresse. Elle permet de fixer une taille commune à des nœuds de dimensions différentes. Sinon, quand vous faites un diagramme, évitez autant que possible d'entrer les coordonnées des nœuds à la main. C'est trop difficile à gérer quand on apporte une modification. Tikz TikZ est très puissant pour la gestion des coordonnées relatives : profitez-en ! \documentclass[11pt,tikz]{standalone} \usepackage[utf8]{inputenc} \usetikzlibrary{positioning} \tikzset{basic/.style = {draw,text width=2cm, rectangle,align=center}} \tikzset{trait/.style = {line width=2pt,gray}} \tikzset{fleche/.style = {trait,>=stealth,->}} \begin{document} \begin{tikzpicture} \node[basic,text width=7cm] (a) {653 effectifs}; \node[draw,below=.5cm of a.south east,anchor=north west,xshift=-2cm](b){\parbox[t][][c]{4.25cm}{2 inclusions redondantes\\ 2 oppositions au suivi\\ 3 dossiers incomplets\\ 3 inclusions inadaptées}}; \node[basic,text width=7cm,below=3.25cm of a] (f) {641 inclusions}; \node[basic,text width=5cm,minimum size=2cm,below=2cm of f,xshift=4cm](i){580 potentiels sans ECM}; \node[basic,text width=5cm,minimum size=2cm,below=2cm of f,xshift=-4cm](j){61 ECM}; \node[below=1cm of i.south west,anchor=north west,xshift=1cm] (L){36 coronarographies}; \node[below=.5cm of L.south west,anchor=north west] (zb){2 pontages}; \node[below=.5cm of zb.south west,anchor=north west] (zc){13 traitements médicaux}; \node[below=1cm of j.south west,anchor=north west,xshift=1cm](h){51 IDM}; \node[below=.5cm of h.south west,anchor=north west,text width=6cm](za){7 véccés de cause cardiaque ou potentielle}; \node[below=.5cm of za.south west,anchor=north west,text width=6cm](K){3 sténoses significatives stentées}; % flèches et traits \draw[fleche] (a.south)--(f.north); \draw[trait] (b.west)-|(a.south); \draw[fleche,rounded corners=16pt] (f.south)--++(0cm,-1cm)-|(j.north); \draw[fleche,rounded corners=16pt] (f.south)--++(0cm,-1cm)-|(i.north); \coordinate[left=0.5cm of h](hl); \draw[fleche](j.south-|hl.north)|-(hl)--(h.west); \draw[fleche](hl)|-(za.west); \draw[fleche](hl)|-(K.west); \coordinate[left=0.5cm of L](Ll); \draw[fleche](i.south-|Ll.north)|-(Ll)--(L.west); \draw[fleche](Ll)|-(zb.west); \draw[fleche](Ll)|-(zc.west); \end{tikzpicture} \end{document} ![alt text][1] [1]: http://texnique.fr:80/osqa/upfiles/diag_0jr5rEm.png
cliquez ici pour masquer/afficher la révision 7

17 Jan '16, 22:47

denis's gravatar image

denis
7.3k2510

cliquez ici pour masquer/afficher la révision 6

17 Jan '16, 18:23

pluton's gravatar image

pluton
1.2k22937

cliquez ici pour masquer/afficher la révision 5
MAJ

17 Jan '16, 17:50

Pathe's gravatar image

Pathe
7.6k49209252

cliquez ici pour masquer/afficher la révision 4
retour chariot

17 Jan '16, 17:50

Pathe's gravatar image

Pathe
7.6k49209252

cliquez ici pour masquer/afficher la révision 3
typo

17 Jan '16, 17:49

Pathe's gravatar image

Pathe
7.6k49209252

cliquez ici pour masquer/afficher la révision 2

17 Jan '16, 17:13

pluton's gravatar image

pluton
1.2k22937

cliquez ici pour masquer/afficher la révision 1

17 Jan '16, 16:22

pluton's gravatar image

pluton
1.2k22937

C'est votre première visite ici ? Consultez la FAQ !

×