From e93e8651983ed6293c245ebdf83d003d56f798b4 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Sat, 12 Oct 2013 10:17:55 -0500 Subject: [PATCH] Label dates every 3 months instead of every month --- doc/tools/plot_pr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tools/plot_pr.py b/doc/tools/plot_pr.py index ee5ca88d..5f9b4aa6 100644 --- a/doc/tools/plot_pr.py +++ b/doc/tools/plot_pr.py @@ -121,7 +121,7 @@ fig, ax = plt.subplots(figsize=(7, 5)) n, bins, _ = ax.hist(dates_f, bins=bins, color='blue', alpha=0.6) ax.xaxis.set_major_formatter(FuncFormatter(date_formatter)) -ax.set_xticks(bins[:-1]) +ax.set_xticks(bins[2:-1:3]) # Date label every 3 months. labels = ax.get_xticklabels() for l in labels: