Graphics, Figures & TablestikZ - Scale doesn't work

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

tikZ - Scale doesn't work

Post by ahmedlasheen »

in the following code can anybody tell me why the scaling is not working ? i tried it several time but it doesnot work.

Code: Select all

\begin{tikzpicture}[remember picture,overlay,scale=0.5]
  \node[xshift=6cm,yshift=3cm] at (current page.center) {%
  
\begin{tikzpicture}
{
    \node [block] (graphical) {Graphical Summary Measure};
    \node [cloud, below of=graphical]      (stem)                {stem and leaf display};
    \node [cloud, below of=stem]           (boxplots)            {boxplots};
    \node [cloud, below of=boxplots]       (schematics)          {schematics plots};
    \node [cloud, below of=schematics]     (histogram)           {Histograme};
    \node [cloud, below of=histogram]      (kernel)              {Kernal Density Smoothing};
    \node [cloud, below of=kernel]         (Cumulative)          {Cumulative Frequency Distrbution};
    % Draw arrows
    \draw [->] (graphical) to (stem);
    \draw [->] (stem) to  (boxplots);
    \draw [->] (boxplots) to  (schematics);
    \draw [->] (schematics) to (histogram) ;
    \draw [->] (histogram) to (kernel) ;
    \draw [->] (kernel) to (Cumulative);
}
\end{tikzpicture}

   };
 \end{tikzpicture}
Last edited by ahmedlasheen on Sat Oct 30, 2010 3:34 pm, edited 1 time in total.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

tikZ - Scale doesn't work

Post by localghost »

Please always provide a full but minimal example that clearly reproduces the undesired behaviour. Unfortunately you are not very specific about the problem due to the lack of such an example. So there are only assumptions.

I guess you will need the »transform shape« option as described in Section 15.7 (Transformations, p. 161) of the pgf/tikZ 2.00 manual.


Best regards and welcome to the board
Thorsten
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

tikZ - Scale doesn't work

Post by ahmedlasheen »

thansk the scale works know after adding the transform shape . :D
here is the minimal example

Code: Select all

\documentclass[a4paper,10pt]{article}
%Graphics Library
%%%%%%%%%%%%%%%%%%%
\usepackage{tikz}
\usepackage{geometry}
\geometry{a4paper,textwidth=17cm,textheight=27cm} 
\usetikzlibrary{shapes,arrows}


\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define block styles
\tikzstyle{block} = [rectangle, draw, fill=blue!20,node distance=4cm,text width=3cm, text centered, rounded corners, minimum height=4em]
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,text width=4cm,text centered, minimum height=2em]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage
\begin{tikzpicture}[remember picture,overlay,transform shape,scale=0.5]
  \node[xshift=6cm,yshift=1cm] at (current page.center) {%
  
\begin{tikzpicture}
{
    \node [block] (graphical) {Graphical Summary Measure};
    \node [cloud, below of=graphical]      (stem)                {stem and leaf display};
    \node [cloud, below of=stem]           (boxplots)            {boxplots};
    \node [cloud, below of=boxplots]       (schematics)          {schematics plots};
    \node [cloud, below of=schematics]     (histogram)           {Histograme};
    \node [cloud, below of=histogram]      (kernel)              {Kernal Density Smoothing};
    \node [cloud, below of=kernel]         (Cumulative)          {Cumulative Frequency Distrbution};
    % Draw arrows
    \draw [->] (graphical) to (stem);
    \draw [->] (stem) to  (boxplots);
    \draw [->] (boxplots) to  (schematics);
    \draw [->] (schematics) to (histogram) ;
    \draw [->] (histogram) to (kernel) ;
    \draw [->] (kernel) to (Cumulative);
}
\end{tikzpicture}

   };
 \end{tikzpicture}
\end{document}
Post Reply