From 01f3b9fa697afb70eab420b6797458f4cc8e38e7 Mon Sep 17 00:00:00 2001 From: Abdul Fatir Date: Tue, 12 Mar 2024 21:49:21 +0100 Subject: [PATCH] Reorder plots --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e978aae..79a353e 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,10 @@ forecast = pipeline.predict(context, prediction_length) # shape [num_series, nu forecast_index = range(len(df), len(df) + prediction_length) low, median, high = np.quantile(forecast[0].numpy(), [0.1, 0.5, 0.9], axis=0) +plt.figure(figsize=(8, 4)) plt.plot(df["#Passengers"], color="royalblue", label="historical data") -plt.fill_between(forecast_index, low, high, color="tomato", alpha=0.3, label="80% prediction interval") plt.plot(forecast_index, median, color="tomato", label="median forecast") +plt.fill_between(forecast_index, low, high, color="tomato", alpha=0.3, label="80% prediction interval") plt.legend() plt.grid() plt.show()