Skip to content

Commit

Permalink
Making plot bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed-dash committed Dec 27, 2023
1 parent 9229b07 commit bfdb150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AoC_2023/Dazbo's_Advent_of_Code_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit bfdb150

Please sign in to comment.