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

Skip to content

Commit 59f1b63

Browse 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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/api/power_norm_demo.py

Lines 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

Lines 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)