Hi,
I've used Latex for a while now but have only just discovered Tikz/PGF. I'm preparing data flow diagrams for my students but I can't work out how to conveniently create one of the symbols.
How can I create a rectangle that has top and bottom edges a different color to the left and right edges? In DFDs a Data Store looks like the capacitance symbol in electrical circuits but with space inside for a short description.
Thanks
Graphics, Figures & Tables ⇒ Data Flow Diagrams (Tikz)
NEW: TikZ book now 40% off at Amazon.com for a short time.

Data Flow Diagrams (Tikz)
You can try
There are other ways also.
Code: Select all
\begin{tikzpicture}
\node[rectangle,inner sep=0pt,minimum height=0.5cm,minimum width=1cm,fill=gray] (a) {};
\draw[red,thick] (a.north west) -- (a.north east)
(a.south west) -- (a.south east);
\draw[blue,thick] (a.north west) -- (a.south west)
(a.north east) -- (a.south east);
\end{tikzpicture}