Fold each event file with its parfile and plot profile and phaseogram.
nbin is the number of phase bins per pulse cycle.
nbin
The figures written, one per file.
fold_events()