Skip to content

Commit

Permalink
Merge pull request #228 from VesnaT/line_chart_x_pred
Browse files Browse the repository at this point in the history
[FIX] Line Chart: Fix x_data for forecast plotting
  • Loading branch information
ajdapretnar committed Aug 4, 2022
2 parents 663f531 + 97cc2e6 commit 0252d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/timeseries/widgets/owlinechart.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def __extract_data(
y_pred_low = forecast.get_column_view(var_low)[0].astype(float)
y_pred_high = forecast.get_column_view(var_high)[0].astype(float)

x_pred = np.arange(len(y_true) + len(y_pred) - 1)
x_pred = np.arange(len(y_pred)) + len(y_true)
if is_time_var:
# extrapolate
n_pred = len(forecast)
Expand Down

0 comments on commit 0252d69

Please sign in to comment.