Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 6
d'utiles guillemets

14 Fév '16, 22:04

Pathe's gravatar image

Pathe
7.6k49209252

Diagramme en TikZ : taille constante de rectangles

Y a-t-il un moyen pour que le rectangle où il y a la ligne 61 de l'ECM fasse la même dimension que celle où il y a est indiqué « 580 potentiels, potentiels », et ainsi de suite, ceci quelque soit son contenu ? Le contenu d'un rectangle change les dimensions de ce dernier ; or je voudrais qu'il garde la même dimension que celui qui est en face. \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{trees} \usepackage{graphicx} \begin{document} \section{diagramme 3} \resizebox*{1\textwidth}{\textheight} {\tikzset{ basic/.style = {text width=2cm,font=\Huge, rectangle,align=center}, } \begin{tikzpicture}[node distance=1cm, auto,minimum size=4em] \node[draw,basic,text width=7cm,font=\huge] (a) at (24,22.28){653 fectifs }; \node[basic,text width=8cm,align=left] (b) at (29.6,20.6){\textit{2 perdus de vue} }; \node[text width=8cm,align=left,font=\huge] (d) at (29.6,19.3){\textit{2 inclusions redondantes}}; \node[text width=8cm,align=left,font=\huge] (l) at (29.6,17.99){\textit{2 oppositions au suivi}}; \node[basic,text width=8cm,align=left] (c) at (29.6,16.9){\textit{3 dossiers incomplets }}; \node[basic,text width=8cm,align=left] (e) at (29.6,15.4){\textit{3 inclusions \hbox{inadaptées}}}; \node[draw,basic,text width=7cm,font=\huge] (f) at (24,13.7){641 inclusions }; \node[draw,basic,text width=6.5cm] (i) at (28,9.2){\,580 potentiels sans ECM \,}; \node[draw,basic,text width=6.5cm] (j)at(20,9){\,61 ECM\, }; \node[draw=none] (a1)at(24,11.5){}; \node[basic,text width=6cm] (L)at(30.4,6.5){\mbox {36 coronarographies }}; \node[basic,text width=5cm] (za)at(22.5,3){7 véccés de cause cardiaque ou potentielle }; \node[basic,text width=5cm] (zb)at(30,4.3){2 pontages }; \node[basic,text width=5cm] (zc)at(30,2){13\hbox{ traitements} médicaux }; \node[basic,text width=4cm] (h) at (22,6.5){51 IDM }; \node[basic,text width=4cm] (g) at (22.5,1.4){\mbox{} }; \node[basic,text width=4cm] (K)at(22.1,-1.1){\mbox {\,3 sténoses significatives stentées }}; %\node[] (a1) at (24,11.5){}; \node (w) at (24.9,17.9){}; \node (l)at(25.6,17.9){}; \node (m)at(23.3,17.9){}; \node (n)at(23.8,15){}; \node (o)at(20,18){}; \node (c)at(29.5,15){}; \node (x)at(18.3,9.3){}; \node (q)at(16.5,6){}; \node (t) at (26.5,7.2){}; \node (t1) at (24,1.8){}; \node (u)at(29.7,16.8){}; \node (k)at(20.5,-1.1){}; \node (v)at(23.9,5){}; \node (v1)at(25.6,14){}; \node (x1)at(18,8.99){}; \draw[line width=4pt,>=stealth,gray] (zb) (x1); \draw[line width=4pt,>=stealth,gray] (K.west)(j); \draw[line width=4pt,->=stealth,gray] (h)-- (L); \draw[line width=4pt,->=stealth,gray] (x1)|- (h); \draw[line width=4pt,->=stealth,gray] (x1)|-(za); \draw[line width=4pt,>=stealth,gray, rounded corners=16pt,>] (w.north)|- (b.west); \draw[line width=4pt,>=stealth,gray, rounded corners=16pt,>] (w.north)|-(e.west); \draw[line width=4pt,>=stealth,gray](w.west)(l.west); \draw[line width=4pt,>=stealth,gray](o) (w); \draw[line width=4pt,>=stealth,gray] (o) (c.west); \draw[line width=4pt,->=stealth,gray, rounded corners=6pt,->] (f)|-(24,11.7)-| (j.north); \draw[line width=4pt,->=stealth,gray, rounded corners=6pt,->] (f)|-(24,11.7)-| (i.north); \draw[line width=4pt,->=stealth,gray] (g)(t)|- (zc); \draw[line width=4pt,>=stealth,gray] (t) (g); \draw[line width=4pt,->=stealth,gray] (m) (w); \draw[line width=4pt,>=stealth,gray] (g) (za); \draw[line width=4pt,->=stealth,gray] (x1) |- (k); \draw[line width=4pt,->=stealth,gray] (g)(t)|-(zb); \draw[line width=4pt,>=stealth,gray] (a)-- (f); \draw[line width=4pt,>=stealth,gray] (m)-- (l); \draw[line width=4pt,>=stealth,gray] (L)--(h); \draw[line width=4pt,>=stealth,gray] (g)(t)(za); \end{tikzpicture}} \end{document} ![Diagramme][1] [1]: http://texnique.fr:80/osqa/upfiles/diagramme_YQDPycm.png
cliquez ici pour masquer/afficher la révision 5

17 Jan '16, 15:15

stefan's gravatar image

stefan
10618

Diagramme en TikZ : taille constante de rectangles

Y a-t-il un moyen pour que le rectangle où il y a la ligne 61 de l'ECM fasse la même dimension que celle où il y a 580 potentiels, et ainsi de suite, ceci quelque soit son contenu ? Le contenu d'un rectangle change les dimensions de ce dernier ; or je voudrais qu'il garde la même dimension que celui qui est en face. \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{trees} \usepackage{graphicx} \begin{document} \section{diagramme 3} \resizebox*{1\textwidth}{\textheight} {\tikzset{ basic/.style = {text width=2cm,font=\Huge, rectangle,align=center}, } \begin{tikzpicture}[node distance=1cm, auto,minimum size=4em] \node[draw,basic,text width=7cm,font=\huge] (a) at (24,22.28){653 fectifs }; \node[basic,text width=8cm,align=left] (b) at (29.6,20.6){\textit{2 perdus de vue} }; \node[text width=8cm,align=left,font=\huge] (d) at (29.6,19.3){\textit{2 inclusions redondantes}}; \node[text width=8cm,align=left,font=\huge] (l) at (29.6,17.99){\textit{2 oppositions au suivi}}; \node[basic,text width=8cm,align=left] (c) at (29.6,16.9){\textit{3 dossiers incomplets }}; \node[basic,text width=8cm,align=left] (e) at (29.6,15.4){\textit{3 inclusions \hbox{inadaptées}}}; \node[draw,basic,text width=7cm,font=\huge] (f) at (24,13.7){641 inclusions }; \node[draw,basic,text width=6.5cm] (i) at (28,9.2){\,580 potentiels sans ECM \,}; \node[draw,basic,text width=6.5cm] (j)at(20,9){\,61 ECM\, }; \node[draw=none] (a1)at(24,11.5){}; \node[basic,text width=6cm] (L)at(30.4,6.5){\mbox {36 coronarographies }}; \node[basic,text width=5cm] (za)at(22.5,3){7 véccés de cause cardiaque ou potentielle }; \node[basic,text width=5cm] (zb)at(30,4.3){2 pontages }; \node[basic,text width=5cm] (zc)at(30,2){13\hbox{ traitements} médicaux }; \node[basic,text width=4cm] (h) at (22,6.5){51 IDM }; \node[basic,text width=4cm] (g) at (22.5,1.4){\mbox{} }; \node[basic,text width=4cm] (K)at(22.1,-1.1){\mbox {\,3 sténoses significatives stentées }}; %\node[] (a1) at (24,11.5){}; \node (w) at (24.9,17.9){}; \node (l)at(25.6,17.9){}; \node (m)at(23.3,17.9){}; \node (n)at(23.8,15){}; \node (o)at(20,18){}; \node (c)at(29.5,15){}; \node (x)at(18.3,9.3){}; \node (q)at(16.5,6){}; \node (t) at (26.5,7.2){}; \node (t1) at (24,1.8){}; \node (u)at(29.7,16.8){}; \node (k)at(20.5,-1.1){}; \node (v)at(23.9,5){}; \node (v1)at(25.6,14){}; \node (x1)at(18,8.99){}; \draw[line width=4pt,>=stealth,gray] (zb) (x1); \draw[line width=4pt,>=stealth,gray] (K.west)(j); \draw[line width=4pt,->=stealth,gray] (h)-- (L); \draw[line width=4pt,->=stealth,gray] (x1)|- (h); \draw[line width=4pt,->=stealth,gray] (x1)|-(za); \draw[line width=4pt,>=stealth,gray, rounded corners=16pt,>] (w.north)|- (b.west); \draw[line width=4pt,>=stealth,gray, rounded corners=16pt,>] (w.north)|-(e.west); \draw[line width=4pt,>=stealth,gray](w.west)(l.west); \draw[line width=4pt,>=stealth,gray](o) (w); \draw[line width=4pt,>=stealth,gray] (o) (c.west); \draw[line width=4pt,->=stealth,gray, rounded corners=6pt,->] (f)|-(24,11.7)-| (j.north); \draw[line width=4pt,->=stealth,gray, rounded corners=6pt,->] (f)|-(24,11.7)-| (i.north); \draw[line width=4pt,->=stealth,gray] (g)(t)|- (zc); \draw[line width=4pt,>=stealth,gray] (t) (g); \draw[line width=4pt,->=stealth,gray] (m) (w); \draw[line width=4pt,>=stealth,gray] (g) (za); \draw[line width=4pt,->=stealth,gray] (x1) |- (k); \draw[line width=4pt,->=stealth,gray] (g)(t)|-(zb); \draw[line width=4pt,>=stealth,gray] (a)-- (f); \draw[line width=4pt,>=stealth,gray] (m)-- (l); \draw[line width=4pt,>=stealth,gray] (L)--(h); \draw[line width=4pt,>=stealth,gray] (g)(t)(za); \end{tikzpicture}} \end{document}\end{document} ![Diagramme][1] [1]: http://texnique.fr:80/osqa/upfiles/diagramme_YQDPycm.png
cliquez ici pour masquer/afficher la révision 4

15 Jan '16, 21:18

denis's gravatar image

denis
7.3k2510

cliquez ici pour masquer/afficher la révision 3
orthographe, code

15 Jan '16, 21:10

Pathe's gravatar image

Pathe
7.6k49209252

cliquez ici pour masquer/afficher la révision 2

15 Jan '16, 21:10

sim's gravatar image

sim
73116

cliquez ici pour masquer/afficher la révision 1

15 Jan '16, 19:43

sim's gravatar image

sim
73116

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

×