Adding graphs to plotting templates