One of tools I use is TikZ, a LaTeX package. For links to tutorials and examples, see https://delicious.com/stared/tikz. For tensor diagrams, see e.g. http://elishapeterson.wikidot.com/tikz:diagrams.