Also I would like to know where to find a good tutorial for
\pgfdeclaredecoration
, since I want to use this decoration in more than one figure and don't like copy pasting code if I know that it can be prevented. However, the tikZ manual is not very clear on this topic, and I can't find a good tutorial.A minimal working example showing the markings problem (pdf output is attached):
Code: Select all
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}
\draw[thick,postaction={decorate, decoration={
markings,% switch on markings
mark=% actually add a mark
between positions 0 and 1 step 1.5mm
with
{
\draw (0pt,0pt) -- (-3pt,-5pt);
}
}}] (0,5) .. controls (0,4) and (1,2.5) .. (5,2) .. controls (7,1.75) and (9,1) .. (9,0);
\end{tikzpicture}
\end{document}