added a plot_nhist method to the Secat class in catfuncs.py