Skip to content

Commit

Permalink
[fix] Plot_parameter - Yearly Seasonality (#1501)
Browse files Browse the repository at this point in the history
* plotly xaxis

* black
  • Loading branch information
SimonWittner authored Jan 15, 2024
1 parent 49d4e36 commit b37ed04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion neuralprophet/plot_model_parameters_plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,11 @@ def plot_yearly(m, quantile, comp_name="yearly", yearly_start=0, quick=True, mul
)

padded_range = get_dynamic_axis_range(df_y["ds"].dt.to_pydatetime(), type="dt")
xaxis = go.layout.XAxis(title="Day of year", range=padded_range)
xaxis = go.layout.XAxis(
title="Day of year",
range=padded_range,
tickformat="%B %e",
)
yaxis = go.layout.YAxis(
rangemode="normal",
title=go.layout.yaxis.Title(text=f"Seasonality: {comp_name}"),
Expand Down

0 comments on commit b37ed04

Please sign in to comment.