From da76a5790468695e69a3df2c92548a3e3bbcbbd7 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:45:37 +0200 Subject: [PATCH] MAINT: sort keyword arguments --- docs/003.ipynb | 6 +++--- docs/017.ipynb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/003.ipynb b/docs/003.ipynb index 30f7ccc..4cf6edd 100644 --- a/docs/003.ipynb +++ b/docs/003.ipynb @@ -374,10 +374,10 @@ }, "outputs": [], "source": [ - "fig, axes = plt.subplots(ncols=2, figsize=(11, 4.5), tight_layout=True)\n", + "fig, axes = plt.subplots(figsize=(11, 4.5), ncols=2, tight_layout=True)\n", "ax1, ax2 = axes\n", "for ax in axes:\n", - " ax.axhline(0, linewidth=0.5, c=\"black\")\n", + " ax.axhline(0, color=\"black\", linewidth=0.5)\n", "\n", "real_style = {\"label\": \"Real part\", \"c\": \"black\", \"linestyle\": \"dashed\"}\n", "imag_style = {\"label\": \"Imag part\", \"c\": \"red\"}\n", @@ -713,9 +713,9 @@ "outputs": [], "source": [ "fig, axes = plt.subplots(\n", + " figsize=(5, 2.5 * len(l_values)),\n", " nrows=len(l_values),\n", " sharex=True,\n", - " figsize=(5, 2.5 * len(l_values)),\n", " tight_layout=True,\n", ")\n", "fig.suptitle(f\"Dispersion integrals for $m_1={m1_val:.2f}, m_2={m2_val:.2f}$\")\n", diff --git a/docs/017.ipynb b/docs/017.ipynb index 856c5e1..9a0c7c5 100644 --- a/docs/017.ipynb +++ b/docs/017.ipynb @@ -426,7 +426,7 @@ " a.set_yticks([])\n", " a.axis(\"off\")\n", "fig.tight_layout()\n", - "fig.subplots_adjust(wspace=0, hspace=0)\n", + "fig.subplots_adjust(hspace=0, wspace=0)\n", "\n", "fig.canvas.toolbar_visible = False\n", "fig.canvas.header_visible = False\n",