Skip to content

Commit

Permalink
Fix change to remove graph edge
Browse files Browse the repository at this point in the history
Fixes 3961141
  • Loading branch information
kimrutherford committed Oct 11, 2023
1 parent 3961141 commit 48b0a1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gene_characterisation_status/format_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
colors = [color_settings[x] for x in labels]

# Plot a stackplot of the counts
plt.figure()
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.spines.top.set(visible=False)
ax.spines.right.set(visible=False)

plt.stackplot(all_data['date'], all_data['published'], all_data['inferred_role'], all_data['conserved_unknown'], all_data['fission_yeast_unknown'], labels=labels, colors=colors)

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()
plt.savefig('results/figure.svg')
plt.savefig('results/figure.svg')

0 comments on commit 48b0a1e

Please sign in to comment.