When I set the minimum size
of an ellipse in a tikzpicture
environment, it expands into a circle if the inner content does not grow as large as the ellipse shape itself.
Is there any way around it?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes}
\tikzstyle{every node}=[draw, ellipse, minimum size=100pt,
align=center]
\node (a) {Alpha};
\node[left=150pt, below=30pt] (b) at (a) {Beta};
\end{tikzpicture}
\end{document}
It seems to me that, without something as wide as the ellipse length, TikZ is not able to define the width and height of the ellipse, but how can I set these variables?
Best Answer
You can set
minimum height=<length>
, orminimum width=<length>
as shown in MWE:Notes:
minimum size
is setting both the values ofminimum width
andminimum height
and hence you end up with a circle.minimum height=
andminimum width=
parameters you need to set them to different values, otherwise you will again end up with a circle.Code: