From 146c5652a02e210ae50351dd01b4c47773ebec74 Mon Sep 17 00:00:00 2001 From: Allen Lee Date: Sun, 17 Mar 2024 01:39:42 -0700 Subject: [PATCH] fix url --- episodes/09-plotting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/episodes/09-plotting.md b/episodes/09-plotting.md index 8414b500c..bb373b474 100644 --- a/episodes/09-plotting.md +++ b/episodes/09-plotting.md @@ -348,7 +348,7 @@ matplotlib will make this variable refer to a new empty figure. Therefore, make sure you call `plt.savefig` before the plot is displayed to the screen, otherwise you may find a file with an empty plot. -Sometimes, some elements of the figure may get truncated when saving the figure to a file. You can find an in-depth explanation why this happens [here](https://matplotlib.org/stable/tutorials/intermediate/tight_layout_guide.html). To avoid this, we can call `plt.tight_layout` before `plt.savefig` to make sure that everything fits into the figure area. +Sometimes, some elements of the figure may get truncated when saving the figure to a file. You can find an in-depth explanation why this happens [here](https://matplotlib.org/stable/users/explain/axes/tight_layout_guide.html). To avoid this, we can call `plt.tight_layout` before `plt.savefig` to make sure that everything fits into the figure area. ```python plt.tight_layout()