## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ scaling a matrix

Information and discussion about graphics, figures & tables in LaTeX documents.
odhage
Posts: 22
Joined: Wed Sep 02, 2015 11:41 am

### scaling a matrix

Hi!
I try to scale a matrix that is to big to fit on the page. I have tried \begin{tikzpicture}[scale=.5] but see no difference. Do I need to change font size as well? or is it something else I need to take into consideration?
/Mikael

Tags:

Stefan Kottwitz
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm
Hi Mikael,

besides the scale option, we often need to set transform shape.

Stefan

odhage
Posts: 22
Joined: Wed Sep 02, 2015 11:41 am
Thanks Stefan for speedy response!
Here is the code:

(I have
\usepackage{tikz}\usetikzlibrary{matrix}
in the preamble)

\begin{figure}\begin{tikzpicture}[scale=.5]   \matrix (m) [ matrix of nodes, row sep = 1em, column sep = 0em,				nodes={minimum width = 7em, outer sep = 0em}] {		 & 		&		 &  		   &		&	& medkännande\\		 & 		&		 &  		   &		&erkännande& \\		 & 		&		 &  		   &kommunikation&	& \\		 & 		&		 & tolerans   &		&	& \\		 & 		&acceptans &  		   &		&	& \\		 & insikt&		 &  		   &		&	& \\Villighet & 		&		 &  		   &		&	& \\   };   \draw 		(m-7-1.south west) -- (m-7-1.south east)	 -- (m-6-2.south west) -- (m-6-2.south east)	 -- (m-5-3.south west) -- (m-5-3.south east)	 -- (m-4-4.south west) -- (m-4-4.south east)	 -- (m-3-5.south west) -- (m-3-5.south east)	 -- (m-2-6.south west) -- (m-2-6.south east)	 -- (m-1-7.south west) -- (m-1-7.south east)   ;\end{tikzpicture}\caption{De tre nedersta stegen beskriver individuell utveckling som ger god grund för grupputveckling. De fyra översta visar en parallell process på gruppnivå där tolerans motsvara villighet.}\end{figure}

/Mikael