Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0ca30c2

Browse filesBrowse files
committed
linting, line length
1 parent 92a8f88 commit 0ca30c2
Copy full SHA for 0ca30c2

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎galleries/examples/statistics/histogram_bihistogram.py‎

Copy file name to clipboardExpand all lines: galleries/examples/statistics/histogram_bihistogram.py
+4-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.