Skip to content

Instantly share code, notes, and snippets.

@piEsposito
Created April 14, 2020 22:01
Show Gist options
  • Save piEsposito/e64b99a322043d3c4395aba0cef9d227 to your computer and use it in GitHub Desktop.
Save piEsposito/e64b99a322043d3c4395aba0cef9d227 to your computer and use it in GitHub Desktop.
params = {"ytick.color" : "w",
"xtick.color" : "w",
"axes.labelcolor" : "w",
"axes.edgecolor" : "w"}
plt.rcParams.update(params)
plt.title("IBM Stock prices", color="white")
plt.fill_between(x=idx_pred,
y1=upper_bound_unscaled[:,0],
y2=lower_bound_unscaled[:,0],
facecolor='green',
label="Confidence interval",
alpha=0.75)
plt.plot(idx_pred,
df_pred.Close[-len(pred_mean_unscaled):],
label="Real",
alpha=1,
color='black',
linewidth=0.5)
plt.plot(idx_pred,
pred_mean_unscaled,
label="Prediction for {} days, than consult".format(future_length),
color="red",
alpha=0.5)
plt.legend()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment