From ec25605d4ec5dbcaf6361800416e70a0437fae35 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:43:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/lecture17.ipynb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/lecture17.ipynb b/docs/lecture17.ipynb index ebad9b3..8e14605 100755 --- a/docs/lecture17.ipynb +++ b/docs/lecture17.ipynb @@ -128,9 +128,11 @@ " cmin=-vmax,\n", " cmax=+vmax,\n", " showscale=colorize,\n", - " colorscale=\"RdBu_r\"\n", - " if colorize\n", - " else [[0, \"rgb(0, 0, 0)\"], [1, DEFAULT_PLOTLY_COLORS[i - 1]]],\n", + " colorscale=(\n", + " \"RdBu_r\"\n", + " if colorize\n", + " else [[0, \"rgb(0, 0, 0)\"], [1, DEFAULT_PLOTLY_COLORS[i - 1]]]\n", + " ),\n", " surfacecolor=t.real if colorize else np.ones(shape=t.shape),\n", " )\n", " S_im = [\n",