# Single trendline rather than splitting by color/symbol

**URL:** <https://community.plotly.com/t/single-trendline-rather-than-splitting-by-color-symbol/50396>\
**Category:** 📊 Plotly Python\
**Created:** [February 24, 2021, 10:53am UTC](https://community.plotly.com/t/single-trendline-rather-than-splitting-by-color-symbol/50396 "2021-02-24T10:53:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Storm](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/storm/32/14287_2.png) [@Storm](https://community.plotly.com/u/Storm)\
**Post date:** [February 24, 2021, 10:53am UTC](https://community.plotly.com/t/single-trendline-rather-than-splitting-by-color-symbol/50396/1 "2021-02-24T10:53:58Z")

</div>

Hi, I’ve have a scatterplot with trendlines plotted on it, is there any way to only get a single trendline per color group rather than having a separate one for each symbol type. Currently I have 12 trendlines split across the symbol types rather than the 4 wanted.

```auto
    #Producing the Scatterplot
    fig = px.scatter(df_filtered,
            x = "run_date,
            y = "Average",
            color="instrument",
           trendline= "ols",
           symbol="manual_check",
           symbol_map = {"False" : "x",
                         "True" : "circle",
                         "N/A" : "circle"}
                    )

```

This had the closest solution I can find but it didn’t work when I tried it.

> <https://stackoverflow.com/questions/58545285/how-to-have-just-one-trendline-for-multiple-colors-in-plotly-express-scatter>
