3 Apr 21:08
Re: Help for creating a timeline
Matthias Steinbrink <M.Steinbrink <at> gmx.de>
2008-04-03 19:08:38 GMT
2008-04-03 19:08:38 GMT
Thanks for your quick replay and sorry for being so unspecific. Kjell Magne Fauske schrieb: > Decorations are probably perfect for the zigzagged lines. I thought so two, but I dont really know how to achieve the final result. > I have some problems understanding exactly what you want. Do you have > a link to an existing image/illustration that shows the concept? I have tried (really hard) to create a picture. You can find it here: http://picasaweb.google.com/Matthias.Steinbrink/Uploads (sorry for the poor try, thats why I thought doing it with tikz) Matthias ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
, thats why I thought doing it with tikz)
Matthias
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
). I defined two new commands to separate
the complex drawing stuff from the data, but maybe there's a more TikZ'ish
way?! (All right, one *could* define new node shapes, but probably there's
something in between, right?)
\newcommand{\tlleft}[3]{
\fill[#3] decorate[decoration={zigzag,segment length=4pt,amplitude=1pt}]
{(8,0) -- (8,1.5em)} -- (#1,1.5em) -- (#1,0) -- cycle;
\path (8,0) -- node {#2} (#1,1.5em);
}
\newcommand{\tlright}[3]{
\fill[#3]
decorate[decoration={zigzag,segment length=4pt,amplitude=1pt}]
{(20,1.5em) -- (20,0)} -- (#1,0) -- (#1,1.5em) -- cycle;
\path (20,0) -- node {#2} (#1,1.5em);
}
\begin{tikzpicture}
% draw timeline:
\draw[->] (8,0) -- (20,0);
RSS Feed