From bfdb150d633d55e77a3f4397a6b3322a7c9639b7 Mon Sep 17 00:00:00 2001 From: derailed-dash Date: Wed, 27 Dec 2023 23:14:33 +0000 Subject: [PATCH] Making plot bigger --- src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb b/src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb index e227068..560b9be 100644 --- a/src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb +++ b/src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb @@ -8052,7 +8052,7 @@ " plt.show() \n", "\n", " # Now we'll plot the repeating grid...\n", - " fig, ax = plt.subplots()\n", + " fig, ax = plt.subplots(figsize=(10,6))\n", " \n", " grid[center_index][center_index] = 'C'\n", " numeric_grid = np.array([[char_to_num.get(char, 0) for char in row] for row in grid])\n", @@ -8079,7 +8079,7 @@ " tiled_grid = np.insert(tiled_grid, i * expanded_len + (i - 1) * border_width, 0, axis=1)\n", " \n", " cmap = mcolors.ListedColormap(['black', 'red', 'blue', 'yellow', 'green'])\n", - " ax.set_title(\"Infinitely Expanding Tiles\") \n", + " ax.set_title(\"Infinitely Expanding Tiles\")\n", " plt.subplots_adjust(right=0.8) # Adjust the subplot to make room for the legend\n", " plt.legend(handles=patches, loc='center left', bbox_to_anchor=(1, 0.5))\n", " ax.axis(\"off\")\n",