Skip to content

Commit

Permalink
Fix #66 via suggestion from @lisphilar
Browse files Browse the repository at this point in the history
This commit fixes "Decreased legend visibility on `massive-plots`" (#66)
 via a suggestion by @lisphilar.

 Changelist:
 - Fix `epi.plots.native::stacked`

Co-authored-by: Lisphilar <7270139+lisphilar@users.noreply.github.com>
  • Loading branch information
quantum9Innovation and lisphilar committed Jun 19, 2021
1 parent f1896c6 commit 0ca85d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion epispot/plots/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def stacked(Model, time_frame, title='Compartment Populations over Time',
if log:
plt.yscale('log')
plt.title(title)
plt.legend(loc='upper left', facecolor='white')
plt.legend(loc="lower center", bbox_to_anchor=(0.5, -0.2), borderaxespad=0, ncol=2)
plt.tight_layout()

return plt

0 comments on commit 0ca85d1

Please sign in to comment.