Graphics, Figures & Tablesmatrix tikzlibrary and dimension of figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gdminfo
Posts: 7
Joined: Wed May 27, 2009 5:23 pm

matrix tikzlibrary and dimension of figure

Post by gdminfo »

Hi,

I have done a tikzpicture witch is a matrix with nodes :

Code: Select all

\begin{figure}[h]
\centering
\begin{tikzpicture}
[auto,
decision/.style={diamond, draw=blue, thick, fill=blue!20,
text width=4.5em, text badly centered,
inner sep=1pt},
block/.style ={rectangle, draw=blue, thick, fill=blue!20,
text width=5em, text centered, rounded corners,
minimum height=4em},
line/.style ={draw, thick,shorten >=2pt},
cloud/.style ={draw=red, thick, ellipse,fill=red!20,
minimum height=2em}]
\matrix [column sep=5mm,row sep=7mm]
{
% row 1
& \node [decision] (spatial) {bla}; & \\
% row 3
\node [cloud] (S) {bla}; &
\node [decision] (temporel1) {bla}; &
\node [decision] (temporel2) {bla}; & \\ 

% row 4
& \node [cloud] (ST) {$a~\rho_{st}~b$}; &
\node [cloud] (T) {bla}; &
\node [cloud] (NSTT) {bla}; \\
};
\begin{scope}[every path/.style=line]
\path  (spatial) -- (temporel1);
\path [|-] (spatial) -| (temporel2);
\path [-|] (S) -- (temporel1);
\path (temporel1) -- (ST);
\path [|-] (temporel2) -|  (NSTT);
\end{scope}
\end{tikzpicture}
\caption{bla bla}
\label{bla}
\end{figure}
But it is impossible to reduce this figure, also with the option scale in tikzpicture option...

Do you have an idea ?

Thanks a lot,


remark
set up need :

Code: Select all

\usepackage{tikz}
\usepackage{pgf}
\usetikzlibrary{shapes,matrix}
GDM.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply