Graphics, Figures & TablesData Flow Diagrams (Tikz)

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
retrogrouch
Posts: 4
Joined: Tue Feb 09, 2010 9:43 am

Data Flow Diagrams (Tikz)

Post by retrogrouch »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

frederic
Posts: 9
Joined: Mon Jun 27, 2011 7:25 pm

Data Flow Diagrams (Tikz)

Post by frederic »

You can try

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}
There are other ways also.
Post Reply