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 59f1b63

Browse filesBrowse files
committed
Merge pull request #3807 from jenshnielsen/examples_warnings
A couple of simple to fix warnings in the examples
2 parents c6f191f + 79b3112 commit 59f1b63
Copy full SHA for 59f1b63

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎examples/api/power_norm_demo.py

Copy file name to clipboardExpand all lines: examples/api/power_norm_demo.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import numpy as np
66
from numpy.random import multivariate_normal
77

8-
data = np.vstack([multivariate_normal([10, 10], [[3, 5], [4, 2]], size=100000),
8+
data = np.vstack([multivariate_normal([10, 10], [[2, 2], [2, 2]], size=100000),
99
multivariate_normal([30, 20], [[2, 3], [1, 3]], size=1000)
1010
])
1111

‎examples/pylab_examples/findobj_demo.py

Copy file name to clipboardExpand all lines: examples/pylab_examples/findobj_demo.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
fig, ax = plt.subplots()
1414
plt.plot(a, c, 'k--', a, d, 'k:', a, c + d, 'k')
1515
plt.legend(('Model length', 'Data length', 'Total message length'),
16-
'upper center', shadow=True)
16+
loc='upper center', shadow=True)
1717
plt.ylim([-1, 20])
1818
plt.grid(False)
1919
plt.xlabel('Model complexity --->')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.