10000 curly brackets dict · matplotlib/matplotlib@12b80fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 12b80fe

Browse files
committed
curly brackets dict
1 parent c3f5715 commit 12b80fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/misc/keyword_plotting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import matplotlib.pyplot as plt
1717
np.random.seed(19680801)
1818

19-
data = dict([('a', np.arange(50)),
20-
('c', np.random.randint(0, 50, 50)),
21-
('d', np.random.randn(50))])
19+
data = {'a': np.arange(50),
20+
'c': np.random.randint(0, 50, 50),
21+
'd': np.random.randn(50)}
2222
data['b'] = data['a'] + 10 * np.random.randn(50)
2323
data['d'] = np.abs(data['d']) * 100
2424

0 commit comments

Comments
 (0)
0