Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ca30c2

Browse files
committed
linting, line length
1 parent 92a8f88 commit 0ca30c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

galleries/examples/statistics/histogram_bihistogram.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# -----------------------------------------
1818
#
1919
# To generate a bihistogram we need two datasets (each being a vector of numbers).
20-
# We will plot both histograms using plt.hist() and set the weights of the second one to be negative.
21-
# We'll generate data below and plot the bihistogram.
20+
# We will plot both histograms using plt.hist() and set the weights of the second
21+
# one to be negative. We'll generate data below and plot the bihistogram.
2222

2323
N_points = 10_000
2424
n_bins = 30
@@ -32,7 +32,8 @@
3232
# Plot the first histogram
3333
ax.hist(dataset1, bins=n_bins, label="Dataset 1")
3434

35-
# Plot the second histogram (notice the negative weights, which flip the histogram upside down)
35+
# Plot the second histogram
36+
# (notice the negative weights, which flip the histogram upside down)
3637
ax.hist(dataset2, weights=-np.ones_like(dataset2), bins=n_bins, label="Dataset 2")
3738
ax.axhline(0, color="k")
3839
ax.legend()

0 commit comments

Comments
 (0)