Skip to content
  • Sponsor plotly/plotly.py

  • Notifications You must be signed in to change notification settings
  • Fork 2.6k

Trendline returns empty dataframe if color is set #5139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Spider2themax opened this issue Apr 11, 2025 · 1 comment
Open

Trendline returns empty dataframe if color is set #5139

Spider2themax opened this issue Apr 11, 2025 · 1 comment

Comments

@Spider2themax
Copy link

fig = px.scatter(df, x="value1", y="value2", trendline="ols", color="colorcolor")

has resulted in:

results = px.get_trendline_results(fig)
print(results)

If I remove the color, then it works as expected. I don't know why a priori, trendline and color wouldn't be possible at the same time?

@gvwilson
Copy link
Contributor

hi @Spider2themax - the results of your print aren't showing up (or did you mean to include a screenshot?). Also, for tech support and "how-to" questions, please post in our community forum https://community.plotly.com/. Thank you - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants