Module to generate pgfplot latex graphs