Helper script to create graphs