I am quite new in tikZ and I have two alignment problems with the following code:
Code: Select all
\begin{tikzpicture}
% Styles
\tikzstyle{cluster}=[
thick,
densely dashed,
fill=gray!20,
ellipse,
text width=0.3cm,
text height=0.6cm,
text centered,
draw
]
\tikzstyle{arrow}=[->,>=latex]
% Clusters
\node[cluster] (c1) at (0,0){$ $};
\node[cluster] (c2) at (1.6cm,0){$b$};
% Arrow
\draw[arrow] (c1) to[out=-25, in=-155] (c2)
node[midway]{$a$};
\end{tikzpicture}
- why b is not vertically centered in the ellipse on the right;
- why a is not centered on the arrow.
Thanks in advance !