Graphics, Figures & Tables ⇒ Data Flow Diagrams (Tikz)
-
- Posts: 4
- Joined: Tue Feb 09, 2010 9:43 am
Data Flow Diagrams (Tikz)
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Data Flow Diagrams (Tikz)
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}