Skip to content

Commit

Permalink
Set legend loc in geodf plot call (issue #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickynicolson committed Nov 25, 2022
1 parent 243fecc commit 1ad55a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plotoageo.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main():

# 3.1 plotting the ratio between open and closed access
fig, ax = plt.subplots(1, 1)
world.plot(column='OA_ratio',ax=ax, legend=True, cmap='OrRd', scheme='quantiles').legend(loc='lower left')
world.plot(column='OA_ratio',ax=ax, legend=True, legend_kwds=dict(loc='lower left', bbox_to_anchor=(1, 1)), cmap='OrRd', scheme='quantiles')
coverage = 'all'
if args.tax_novs_only:
coverage = 'tax. nov.'
Expand All @@ -92,7 +92,7 @@ def main():

# 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').legend(loc='lower left')
world.plot(column='OA_unfind',ax=ax, legend=True, legend_kwds=dict(loc='lower left', bbox_to_anchor=(1, 1)), 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)
Expand Down

0 comments on commit 1ad55a1

Please sign in to comment.