Skip to content

Commit d7b49a6

Browse files
committed
fix legend and place it below graph
earlier the legend overlapped on the curves, making it difficult to interpret the graph. this version fixes it
1 parent 211832b commit d7b49a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lectures/mccall_q.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.17.3
7+
jupytext_version: 1.17.2
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
@@ -721,7 +721,8 @@ def plot_epochs(epochs_to_plot, quit_allowed=1, key=None):
721721
722722
ax.set_xlabel('wages')
723723
ax.set_ylabel('optimal value')
724-
ax.legend(loc='lower right')
724+
ax.legend(bbox_to_anchor=(0.5, -0.15), loc='upper center', ncol=2)
725+
plt.subplots_adjust(bottom=0.2)
725726
plt.show()
726727
```
727728

0 commit comments

Comments
 (0)