mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-07-27 20:02:18 +00:00
Fix "UserWarning" in model.plot_components (#1732)
See the issue https://github.com/facebook/prophet/issues/1721
This commit is contained in:
parent
ad3832bb19
commit
ee592451f2
1 changed files with 1 additions and 0 deletions
|
|
@ -429,6 +429,7 @@ def plot_seasonality(m, name, ax=None, uncertainty=True, figsize=(10, 6)):
|
|||
def set_y_as_percent(ax):
|
||||
yticks = 100 * ax.get_yticks()
|
||||
yticklabels = ['{0:.4g}%'.format(y) for y in yticks]
|
||||
ax.set_yticks(ax.get_yticks().tolist())
|
||||
ax.set_yticklabels(yticklabels)
|
||||
return ax
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue