script to create tikz figure of categories