An overview of predefined node shapes. Note that only the rectangle and circle shapes are loaded by default. To use other shapes, load the shape library. The regular polygon and star shapes are only available for PGF >= v 1.18.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,snakes}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[scale=2]
\tikzstyle{ann} = [draw=none,fill=none,right]
\matrix[nodes={draw, ultra thick, fill=blue!20},
row sep=0.3cm,column sep=0.5cm] {
\node[draw=none,fill=none] {Plain node}; &
\node[rectangle] {Rectangle}; &
\node[circle] {Circle};\\
\node[ellipse] {Ellipse};&
\node[circle split] {Circle \nodepart{lower} split};&
\node[forbidden sign,text width=4em, text centered]
{Forbidden sign};\\
\node[diamond] {Diamond};&
\node[cross out] {Cross out};&
\node[strike out] {Strike out};\\
\node[regular polygon,regular polygon sides=5] {$n=5$};&
\node[regular polygon,regular polygon sides=7] {$n=7$};&
\node[regular polygon,regular polygon sides=9] {$n=9$};&
\node[ann]{Regular polygon};\\
\node[star,star points=4] {$p=4$};&
\node[star,star points=7,star point ratio=0.8] {$p=7$};&
\node[star,star points=10] {$p=9$};&
\node[ann]{Star};\\
};
\end{tikzpicture}
\end{document}
Comments
how can i set the rim of a circle?
How would I modify "node[ellipse] {Ellipse};" if I wanted to specify the two radii?
@James: You have to use the
minimum widthandminimum heightoptions like this:\draw (0,0) node[ellipse, minimum height=2cm,minimum width=3cm,draw] {Ellipse};It's posible split nodepart{lower} verticaly in splic circle?
For examlple http://www.iguru.eu/skola/critical_path.png
Thank for you answer Michal.
Hello Sir or Miss: I want to plot flow chart with Tikz.I don't know how to plot parallelogram box,Could you tell me ?
Post a comment