Python Forum
plotly.graph_objs - Scatter mode error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
plotly.graph_objs - Scatter mode error
#15
OK! It worked !!

def _generate_traces(name_df_color_data):
    traces = []

    for name, df, color in name_df_color_data:
        traces.append(go.Scatter(
            name=name,
            x=df.index,
            y=df,
            mode='lines',
            line={'color': color}))

    return traces
1. Line 9: I changed it from 'line' to 'lines'
2. compiled project_helper.py
3. closed workspace in VS Studio
4. Exited VS Studio
5. Reopened VS Studio
6. Voila !!


@Larz60+ - thank you again for sticking me on this !!
Reply


Messages In This Thread
RE: plotly.graph_objs - Scatter mode error - by sambanerjee - Mar-18-2020, 02:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Shocked plt.scatter() errors asja2010 0 1,567 Oct-13-2022, 08:15 AM
Last Post: asja2010
  binning_endpoints ->plotly Luis_liverpool 0 894 Aug-09-2022, 10:13 AM
Last Post: Luis_liverpool
  How to invert scatter plot axis Mark17 3 2,617 Sep-22-2021, 04:45 PM
Last Post: jefsummers
  things that work in terminal mode but not in sublime mode alok 4 2,940 Aug-11-2021, 07:02 PM
Last Post: snippsat
  plotly expression problem Visiting 2 2,041 May-16-2021, 12:28 AM
Last Post: Visiting
  Animated scatter plot maximan 0 1,675 Jan-18-2021, 03:53 PM
Last Post: maximan
  Group scatter plots Mekala 0 1,686 Jul-23-2020, 02:18 PM
Last Post: Mekala
  error while running in debug mode ModuleNotFoundError avipy123 0 2,668 Jul-14-2020, 02:05 PM
Last Post: avipy123
  how to nest loop for 4*4 scatter plot kassamohammed 0 2,599 Jun-23-2020, 09:47 AM
Last Post: kassamohammed
  How to create Custom Buttons for 3D Scatter plots in Plotly? yourboyjoe 0 2,179 Jun-01-2020, 10:58 PM
Last Post: yourboyjoe

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020