question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UserWarning in plot when using logistic growth

See original GitHub issue

Hi, I am getting a warning alert when using model.plot_components(forecast) with the results from logistic growth.

UserWarning: FixedFormatter should only be used together with FixedLocator
  ax.set_yticklabels(yticklabels)

It references this line https://github.com/facebook/prophet/blob/e41ed25646f44f713c110c30c07c678e4a07728e/python/fbprophet/plot.py#L421-L422

Environment:

  • MacOS
  • Python 3.8
  • fbprophet 0.6
  • matplotlib 3.3.2

The alert is gone after I tried the workaround solution described here https://stackoverflow.com/a/63755285/2839786 i.e. added ax.set_yticks(ax.get_yticks().tolist()) beween the two lines above.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iamazizcommented, Nov 9, 2020

Hi, sure here is the PR: https://github.com/facebook/prophet/pull/1732

I just signed the CLA, I think the check will be updated and pass in several minutes. If not, I will re-do the PR.

0reactions
iamazizcommented, Nov 10, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Logistic growth curve using scipy is not quite right
I'm trying to fit a simple logistic ...
Read more >
UserWarning Matplotlib is currently using agg which is a non ...
I am trying to plot using matplotlib. But I am getting the below error. UserWarning: Matplotlib is currently using agg, which is a...
Read more >
Ml regression in Python - Plotly
This page shows how to use Plotly charts for displaying various types of regression models, starting from simple models like Linear Regression, ...
Read more >
Plot multinomial and One-vs-Rest Logistic Regression
Plot decision surface of multinomial and One-vs-Rest Logistic Regression. The hyperplanes corresponding to the three One-vs-Rest (OVR) classifiers are ...
Read more >
Modeling Logistic Growth - Towards Data Science
The reason to use Logistic Growth for modeling the Coronavirus outbreak is that ... STEP 6 — Plot the fitted function vs the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found