Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created August 11, 2023 21:02
Show Gist options
  • Save quantra-go-algo/d78f756577c15bdcd63eeb5b14692d0c to your computer and use it in GitHub Desktop.
Save quantra-go-algo/d78f756577c15bdcd63eeb5b14692d0c to your computer and use it in GitHub Desktop.
# Set the figure size
plt.figure(figsize=(15,7))
# Plot the residuals
plt.plot(arfima_residuals.index, arfima_residuals, label = "Best d ARFIMA Residuals")
# Set the title of the graph
plt.title('Residuals from the Best d ARFIMA model', fontsize=16)
# Set the x- and y- axis labels and ticks sizes
plt.xlabel('Year-Month', fontsize=15)
plt.ylabel('Residuals', fontsize=15)
plt.tick_params(axis='both', labelsize=15)
# Set the plot legend location
plt.legend(loc=2, prop={'size': 15}, bbox_to_anchor=(0,1))
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment