8000 run flake8 checks · matplotlib/matplotlib@2df575a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2df575a

Browse files
author
Carsten
committed
run flake8 checks
1 parent c845c88 commit 2df575a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/statistics/confidence_ellipse.py

Lines changed: 3 additions & 3 deletions
< 8000 td data-grid-cell-id="diff-4539cdc117814a1e35b9d04e1fd68adeb3037ce6f60da8bc4f46aadc037b026d-128-128-2" data-line-anchor="diff-4539cdc117814a1e35b9d04e1fd68adeb3037ce6f60da8bc4f46aadc037b026dR128" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">
'Weak correlation': np.array([[1, 0],
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,23 @@ def get_correlated_dataset(n, dependency, mu, scale):
128128
129129
[0, 1]]),
130130
}
131-
131+
132132
mu = np.array([2, 4]).T
133133
scale = np.array([3, 5]).T
134134

135135
fig, axs = plt.subplots(1, 3, figsize=(9, 3))
136136
for ax, (title, dependency) in zip(axs, PARAMETERS.items()):
137137
x, y = get_correlated_dataset(800, dependency, mu, scale)
138138
ax.scatter(x, y, s=0.5)
139-
139+
140140
ax.axvline(c='grey', lw=1)
141141
ax.axhline(c='grey', lw=1)
142142

143143
confidence_ellipse(x, y, ax, facecolor='none', edgecolor='red')
144144

145145
ax.scatter([mu[0]], [mu[1]], c='red', s=3)
146146
ax.set_title(title)
147-
147+
148148
plt.show()
149149

150150

0 commit comments

Comments
 (0)
0