From 3961141071f7e70deae329eb7f1522bd2e1c539d Mon Sep 17 00:00:00 2001 From: Kim Rutherford Date: Wed, 11 Oct 2023 17:08:10 +1300 Subject: [PATCH] Remove top and right edges of graph frame Refs pombase/genome_changelog#59 --- gene_characterisation_status/format_counts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gene_characterisation_status/format_counts.py b/gene_characterisation_status/format_counts.py index 393355d..a248df7 100644 --- a/gene_characterisation_status/format_counts.py +++ b/gene_characterisation_status/format_counts.py @@ -29,6 +29,11 @@ plt.xlim([datetime.date(2003,6,1), datetime.date.today()]) # place the legend outside the plot plt.legend(loc='lower center', bbox_to_anchor=(0.5, 1), ncol=2) + +fig, ax = plt.subplots() +ax.spines.top.set(visible=False) +ax.spines.right.set(visible=False) + plt.xlabel('Year', fontsize=15) plt.ylabel('Number of proteins', fontsize=15) plt.tight_layout()