1

I have the following tikz graph. How can I draw braces on the left (2cm away) of Node1?

\begin{frame}
\begin{figure}[!htbp]
\centering
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,
  ,main node/.style={,fill=white!20,draw,font=\sffamily\small\bfseries}]

  \node[main node,scale=0.8] (Node1) {Node 1};
  \node[main node,scale=0.8] (Node2) [right=0.8cm of
   Node1] {Node 2};
    \node[main node,scale=0.8] (Node3) [below=1.5cm of Node1] {Node 3};

\path[every node/.style={font=\sffamily\small}]
(Node1) edge node {} (Node3)
(Node2) edge node {} (Node3)
;
\end{tikzpicture}
\end{figure}
\end{frame}
4

Like this?

enter image description here

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows, positioning, decorations.pathreplacing}

\begin{document}
\begin{frame}
\begin{figure}[!htbp]
\centering
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,
  ,main node/.style={,fill=white!20,draw,font=\sffamily\small\bfseries}]

  \node[main node,scale=0.8] (Node1) {Node 1};
  \node[main node,scale=0.8] (Node2) [right=0.8cm of
   Node1] {Node 2};
    \node[main node,scale=0.8] (Node3) [below=1.5cm of Node1] {Node 3};

\path[every node/.style={font=\sffamily\small}]
(Node1) edge node {} (Node3)
(Node2) edge node {} (Node3)
;

\draw[-,decorate, decoration={brace, raise=2cm}] (Node3.south west)--(Node1.north west);
\end{tikzpicture}
\end{figure}
\end{frame}
\end{document}
  • can I make the brace wider? – kolonel Nov 13 '17 at 20:22
  • @kolonel if I understand correctly, adding amplitude=5pt to decoration={...} should do what you want. – Mike Nov 13 '17 at 21:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.