# Snake decoration does not work with decorations.pathmorphing in tikz

I have simple example that works fine

\documentclass[a4paper,12pt,oneside,titlepage]{report}
\usepackage{tikz}
\usetikzlibrary{snakes}

\begin{document}
\begin{figure}[H]
\begin{tikzpicture}[line width = 1pt]
\end{tikzpicture}
\caption{time-line.}
\label{fig:cus}
\end{figure}
\end{document}


I noticed in output that :

Package tikz Warning: Snakes have been superseded by decorations. Please use th
e decoration libraries instead of the snakes library on input line 14.


If I change my code to

\documentclass[a4paper,12pt,oneside,titlepage]{report}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}

\begin{document}
\begin{figure}[H]
\begin{tikzpicture}[line width = 1pt]
\end{tikzpicture}
\caption{time-line.}
\label{fig:cus}
\end{figure}
\end{document}


it does not draw the "snake" as in the first example. How to replace snakes library for tikz package with decorations correctly?

-
No problem; now you know about it. Thank you for accepting answers. – Gonzalo Medina Sep 3 '12 at 4:01

\documentclass{report}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}

\begin{document}

\begin{figure}[H]
\begin{tikzpicture}[line width = 1pt]
\draw[fill = black!100] circle[radius=2pt] decorate [decoration={snake}]

A good answer. Just a detail: in this example the (0,0) coordinates (a moveto operation) are useless. – Paul Gaborit Sep 2 '12 at 17:12