Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created July 12, 2021 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/b7a834802a177a6626b6d43fa3fe8d93 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/b7a834802a177a6626b6d43fa3fe8d93 to your computer and use it in GitHub Desktop.
# Plot all the close prices
data.plot(figsize=(10, 7))
# Show the legend
plt.legend()
# Define the label for the title of the figure
plt.title("Adjusted Close Price", 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)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment