Created
July 12, 2021 11:44
-
-
Save quantra-go-algo/f71519dd2f0500718f9b988de2d7778c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plot the adjusted close price | |
data['Adj Close'].plot(figsize=(10, 7)) | |
# Define the label for the title of the figure | |
plt.title("Adjusted Close Price of %s" % ticker, fontsize=16) | |
# Define the labels for x-axis and y-axis | |
plt.ylabel('Price', fontsize=14) | |
plt.xlabel('Year', fontsize=14) | |
# Plot the grid lines | |
plt.grid(which="major", color='k', linestyle='-.', linewidth=0.5) | |
# Show the plot | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment