companies = ['AAPL', 'AMD', 'FB', 'GOOGL', 'AMZN', 'NVDA', 'EBAY', 'CSCO', 'IBM'] plt.figure(figsize=(15, 8)) for index, company in enumerate(companies, 1): plt.subplot(3, 3, index) c = data[data['Name'] == company] plt.plot(c['date'], c['close'], c="r", label="close", marker="+") plt.plot(c['date'], c['open'], c="g", label="open", marker="^") plt.title(company) plt.legend() plt.tight_layout() plt.figure(figsize=(15, 8)) for index, company in enumerate(companies, 1): plt.subplot(3, 3, index) c = data[data['Name'] == company] plt.plot(c['date'], c['volume'], c='purple', marker='*') plt.title(f"{company} Volume") plt.tight_layout()