10000 fixed style to more greatly represent style · matplotlib/matplotlib@fd14063 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd14063

Browse files
author
Salil Vanvari
committed
fixed style to more greatly represent style
1 parent 86b32ca commit fd14063

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/pylab_examples/stock_demo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
d1, p1, d2, p2 = get_two_stock_data()
88

99
fig, ax = plt.subplots()
10-
lines = plt.plot(d1, p1, 's', d2, p2, 'o')
10+
lines1 = plt.plot(d1, p1, 'b', label="INTC")
11+
lines2 = plt.plot(d2, p2, 'r', label="AAPL")
1112
plt.xlabel('Days')
1213
plt.ylabel('Normalized price')
1314
plt.xlim(0, 3)
1415
ax.xaxis.set_major_locator(MultipleLocator(1))
1516

1617
plt.title('INTC vs AAPL')
17-
plt.legend(('INTC', 'AAPL'))
18+
plt.legend()
1819

1920
plt.show()

0 commit comments

Comments
 (0)
0