# Changing scatterplot figure legend

**URL:** <https://community.plotly.com/t/changing-scatterplot-figure-legend/50317>\
**Category:** 📊 Plotly Python\
**Created:** [February 22, 2021, 7:39pm UTC](https://community.plotly.com/t/changing-scatterplot-figure-legend/50317 "2021-02-22T19:39:39Z")\
**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 22, 2021, 7:39pm UTC](https://community.plotly.com/t/changing-scatterplot-figure-legend/50317/1 "2021-02-22T19:39:39Z")

</div>

Hi,

I have a scatterplot with color and symbol set as variables of a DataFrame, which results in an overly cluttered figure legend as every combination of symbol and color are displayed. Is there a way to prevent the symbols from appearing in the legend?

Code for the scatterplot:

```auto
    fig = px.scatter(df_filtered,
            x = "date",
            y = "mean_value",
            color = "instrument",
           trendline= "ols",
           symbol="manual_check",
           symbol_map = {"False" : "x",
                         "True" : "circle",
                         "N/A" : "circle"},
           )

```
