Skip to content

Commit

Permalink
Mod legend loc on plt (issue #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickynicolson committed Nov 25, 2022
1 parent b585994 commit a1bd34c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plotoageo.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,19 @@ def main():
plt.title("Ratio of open:closed access of {} IPNI nomenclatural acts ({}-{})".format(coverage,args.year_min,args.year_max))
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
ax.legend(loc='lower left')
plt.legend(loc='lower left')
fig.tight_layout(pad=0)
plt.savefig(args.outputfile_oa, bbox_inches='tight',pad_inches = 0, dpi = 400)
plt.savefig(args.outputfile_oa, bbox_inches='tight',pad_inches = 0.1, dpi = 400)

# 3.2 plotting the percentage of unfindable publications
fig, ax = plt.subplots(1, 1)
world.plot(column='OA_unfind',ax=ax, legend=True, cmap='OrRd', scheme='quantiles')
plt.title("Proportion of un-discoverable publications of {} IPNI nomenclatural acts ({}-{})".format(coverage,args.year_min,args.year_max))
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
ax.legend(loc='lower left')
plt.legend(loc='lower left')
fig.tight_layout(pad=0)
plt.savefig(args.outputfile_unknown, bbox_inches='tight',pad_inches = 0, dpi = 400)
plt.savefig(args.outputfile_unknown, bbox_inches='tight',pad_inches = 0.1, dpi = 400)

if __name__ == "__main__":
main()

0 comments on commit a1bd34c

Please sign in to comment.