plot_period_histogram improvements