From cd9cbef4685d4e27412d9e9d00d7ebec2d21ff1b Mon Sep 17 00:00:00 2001 From: Graham Taylor Date: Wed, 3 Feb 2021 21:17:03 -0500 Subject: [PATCH] Figure size adjustment in chap03 nb There was a TODO to set the figure size. I replaced this with a layout that looks reasonable. --- notebooks/chap03.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebooks/chap03.ipynb b/notebooks/chap03.ipynb index 9d9c4e6d..82a183c4 100644 --- a/notebooks/chap03.ipynb +++ b/notebooks/chap03.ipynb @@ -297,7 +297,8 @@ "nx.draw_circular(ws, node_size=ns)\n", "plt.axis('equal')\n", "\n", - "#TODO: Set figure size\n", + "plt.tight_layout()\n", + "plt.subplots_adjust(wspace=0, hspace=0, left=0, right=1)\n", "savefig('figs/chap03-2')" ] },