From a9f4a8a2ff167c34d745c8b3a3a52bdaefe9a240 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:45:22 +0000 Subject: [PATCH] style: pre-commit fixes --- notebooks/BoostHistogramHandsOn.ipynb | 30 +++++++++++++-------------- notebooks/aghast.ipynb | 2 +- notebooks/xarray.ipynb | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/notebooks/BoostHistogramHandsOn.ipynb b/notebooks/BoostHistogramHandsOn.ipynb index 38f57ea2..4096c1e4 100644 --- a/notebooks/BoostHistogramHandsOn.ipynb +++ b/notebooks/BoostHistogramHandsOn.ipynb @@ -169,7 +169,7 @@ } ], "source": [ - "plt.bar(hist1.axes[0].centers, hist1.values(), width=hist1.axes[0].widths);" + "plt.bar(hist1.axes[0].centers, hist1.values(), width=hist1.axes[0].widths)" ] }, { @@ -192,7 +192,7 @@ "metadata": {}, "outputs": [], "source": [ - "plothist = lambda h: plt.bar(*h.axes.centers, h.values(), width=h.axes.widths[0]);" + "plothist = lambda h: plt.bar(*h.axes.centers, h.values(), width=h.axes.widths[0])" ] }, { @@ -225,7 +225,7 @@ } ], "source": [ - "plt.step(hist1.axes[0].edges[:-1], hist1.values(), where=\"post\");" + "plt.step(hist1.axes[0].edges[:-1], hist1.values(), where=\"post\")" ] }, { @@ -258,7 +258,7 @@ } ], "source": [ - "plt.stairs(hist1.values(), hist1.axes[0].edges);" + "plt.stairs(hist1.values(), hist1.axes[0].edges)" ] }, { @@ -368,7 +368,7 @@ ], "source": [ "hist2 = bh.numpy.histogram(data1, bins=\"auto\", histogram=bh.Histogram)\n", - "plothist(hist2);" + "plothist(hist2)" ] }, { @@ -523,7 +523,7 @@ } ], "source": [ - "plothist2d(hist3);" + "plothist2d(hist3)" ] }, { @@ -595,7 +595,7 @@ } ], "source": [ - "plothist2d(hist3d.project(0, 1));" + "plothist2d(hist3d.project(0, 1))" ] }, { @@ -630,7 +630,7 @@ } ], "source": [ - "plothist2d(hist3);" + "plothist2d(hist3)" ] }, { @@ -663,7 +663,7 @@ } ], "source": [ - "plothist2d(hist3[:, bh.loc(0.25) : bh.loc(0.75)]);" + "plothist2d(hist3[:, bh.loc(0.25) : bh.loc(0.75)])" ] }, { @@ -763,7 +763,7 @@ ], "source": [ "plothist(hist3[:, :: bh.sum])\n", - "plothist(hist3[:: bh.sum, :]);" + "plothist(hist3[:: bh.sum, :])" ] }, { @@ -796,7 +796,7 @@ } ], "source": [ - "plothist2d(hist3[: 50 : bh.rebin(2), 50 :: bh.rebin(2)]);" + "plothist2d(hist3[: 50 : bh.rebin(2), 50 :: bh.rebin(2)])" ] }, { @@ -1065,7 +1065,7 @@ " 10,\n", "]\n", "d7, e7 = np.histogram(data1 - 3.5, bins=bins, density=True)\n", - "plt.hist(data1 - 3.5, bins=bins, density=True);" + "plt.hist(data1 - 3.5, bins=bins, density=True)" ] }, { @@ -1143,7 +1143,7 @@ } ], "source": [ - "plt.bar(hist7.axes[0].centers, view, width=hist7.axes[0].widths);" + "plt.bar(hist7.axes[0].centers, view, width=hist7.axes[0].widths)" ] }, { @@ -1214,7 +1214,7 @@ } ], "source": [ - "plothist2d(hist8);" + "plothist2d(hist8)" ] }, { @@ -1276,7 +1276,7 @@ ], "source": [ "ax = plt.subplot(111, polar=True)\n", - "plothist(hist9);" + "plothist(hist9)" ] } ], diff --git a/notebooks/aghast.ipynb b/notebooks/aghast.ipynb index 0fc22433..400dab81 100644 --- a/notebooks/aghast.ipynb +++ b/notebooks/aghast.ipynb @@ -128,7 +128,7 @@ ], "source": [ "h = bh.Histogram(uproot_hist)\n", - "plt.bar(h.axes[0].centers, h.values(), width=h.axes[0].widths);" + "plt.bar(h.axes[0].centers, h.values(), width=h.axes[0].widths)" ] }, { diff --git a/notebooks/xarray.ipynb b/notebooks/xarray.ipynb index 41fe6886..5c96ff10 100644 --- a/notebooks/xarray.ipynb +++ b/notebooks/xarray.ipynb @@ -145,7 +145,7 @@ "source": [ "bh_bins = bh.axis.Regular(19, -4, 4)\n", "bh_hist = bh.Histogram(bh_bins).fill(np.asarray(da).flatten())\n", - "plt.plot(bh_hist.axes[0].centers, bh_hist.values());" + "plt.plot(bh_hist.axes[0].centers, bh_hist.values())" ] }, { @@ -224,7 +224,7 @@ "source": [ "h = bh_xhistogram(da, bins=[bins])\n", "display(h)\n", - "h.plot();" + "h.plot()" ] }, {