LaTeX forum ⇒ Graphics, Figures & Tablesscaling 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

Postby odhage » Thu Nov 05, 2015 12:33 pm

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:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Nov 05, 2015 11:35 pm

Hi Mikael,

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

Perhaps show your example code?

Stefan
Site admin

odhage
Posts: 22
Joined: Wed Sep 02, 2015 11:41 am

Postby odhage » Mon Nov 09, 2015 10:33 am

Thanks Stefan for speedy response!
Here is the code:

(I have
\usepackage{tikz}
\usetikzlibrary{matrix}

in the preamble)

  1. \begin{figure}
  2. \begin{tikzpicture}[scale=.5]
  3. \matrix (m) [ matrix of nodes, row sep = 1em, column sep = 0em,
  4. nodes={minimum width = 7em, outer sep = 0em}] {
  5. & & & & & & medkännande\\
  6. & & & & &erkännande& \\
  7. & & & &kommunikation& & \\
  8. & & & tolerans & & & \\
  9. & &acceptans & & & & \\
  10. & insikt& & & & & \\
  11. Villighet & & & & & & \\
  12. };
  13. \draw
  14. (m-7-1.south west) -- (m-7-1.south east)
  15. -- (m-6-2.south west) -- (m-6-2.south east)
  16. -- (m-5-3.south west) -- (m-5-3.south east)
  17. -- (m-4-4.south west) -- (m-4-4.south east)
  18. -- (m-3-5.south west) -- (m-3-5.south east)
  19. -- (m-2-6.south west) -- (m-2-6.south east)
  20. -- (m-1-7.south west) -- (m-1-7.south east)
  21. ;
  22. \end{tikzpicture}
  23. \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.}
  24. \end{figure}


/Mikael


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests