Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
erexer committed Jul 12, 2024
2 parents 465d788 + c4c50bb commit c1598ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion msdbook/fishery_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ def plot_factor_performance(param_values, collapse_days, b, m, a):

# set up colorbar
sm.set_array([collapse_days.min(), collapse_days.max()])
cbar = fig.colorbar(sm)
cbar = plt.colorbar(
sm,
ax=plt.gca()
)
cbar.set_label('Days with predator collapse')

return ax1, ax2
Expand Down

0 comments on commit c1598ec

Please sign in to comment.