Consider:
\documentclass[a4paper, 11pt]{article}
\usepackage[protrusion=true,expansion=true]{microtype} % Better typography
\usepackage{graphicx} % Required for including pictures
\usepackage{wrapfig} % Allows in-line images
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning}
\usetikzlibrary{calc,decorations.markings}
\usepackage{mathpazo} % Use the Palatino font
\usepackage[T1]{fontenc}
\tikzstyle{error} = [circle, draw, fill=red!20,
text width=4.0em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!20,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,
minimum height=2em]
\begin{document}
\begin{tikzpicture}[node distance = 2cm, auto]
% Place nodes
\node [block] (X1) {X1};
\node [block, below of=X1, node distance=3cm] (X2) {X2};
\node [block, below right = .25cm and 1.5cm of X1] (Y) {Y};
\node [error, right of = X1, node distance=3.7cm] (error) {error};
% Draw edges
\path [line] (X1) -- (X2);
%\path [line] (error) -- node {1}(X1);
\end{tikzpicture}
\end{document}
I'm looking for a way to draw a curved double headed arrow between X1 and X2 like this:
Any suggestions?
Best Answer
I made the following:
\tikzstyle
is deprecated).positioning
(observe difference between...=of ...
and...=of ...
).For arrows between blocks I used option
bend right
:Note: I didn't bother with exactly replicating the position of your nodes.