8000 Stock demo Fixed by sirlittle · Pull Request #7529 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Stock demo Fixed #7529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
imported the forgotten cbook
  • Loading branch information
Salil Vanvari committed Nov 29, 2016
commit 01c3653796cc5aad412f660ef4085010cf0aa229
3 changes: 2 additions & 1 deletion examples/pylab_examples/stock_demo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import matplotlib.pyplot as plt
import numpy as np

import matplotlib.cbook as cbook
from matplotlib.ticker import MultipleLocator

def get_two_stock_data():
Expand Down Expand Up @@ -32,7 +33,7 @@ def get_two_stock_data():
lines2 = plt.plot(d2, p2, 'r', label="AAPL")
plt.xlabel('Days')
plt.ylabel('Normalized price')
plt.xlim(0, 3 )
plt.xlim(0, 3)
ax.xaxis.set_major_locator(MultipleLocator(1))

plt.title('INTC vs AAPL')
Expand Down
0