El Wed, 19 Oct 2011 10:31:49 +0200, Nick Papior Andersen  
<nickpap...@gmail.com> vau escriure:

> Hi Ignasi
>
> Since this is more a diagram i would suggest you look into tikz drawing.

I already know tikz, but not so well like you!

> There it would have been much easier without suppressing a lot of what
> pgfplots does.
> I have given a small example below. It needs the last polish to exactly
> match yours but is good as a starting point. :)
>
> \begin{tikzpicture}
> \draw[->] (0,0) node[left] {Nivell 1} -- ++(0,3) node[left] {Amplitud};
> \draw[->] (0,0) -- ++(9,0) node[below] {temps};
> \node[left] at (0,1) {Nivell 2};
> \draw[blue!50!green,very thick] (0,1)
> \foreach \lvl [remember=\lvl as \lastlvl (initially 1),count=\xi] in
> { 0,1,1,0,0,0,1,0} {
> -- (\xi,\lastlvl) -- (\xi,\lvl)
> };
> \foreach \lvl [count=\xi] in {1,0,1,1,0,0,0,1} {
> \node at (\xi-.5 ,1.4) {\lvl };
> \draw[dashed] (\xi,0) -- (\xi,1.5);
> }
> \draw[<->] (0,2) -- node[above] {8 bits ...} ++(8,0);
> \end{tikzpicture}
>

Thank you very much for your code. I'll study, adapt and probably adopt it.

Ignasi


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to