Plotly / Python tiny legend symbols

I have a problem with the legend symbol size in Plotly that after googling for ages and trying a lot of things can’t seem to solve.

As you can see on my picture below (can’t show everything here, but the y axis has the same scale as the shown x axis), the symbols are really really small:

I defined my marker size like so:

maximum_marker_size = 50
sizeref = 2 * max(df['size']) / (maximum_marker_size**2)
sizemode = 'area'

Each of the 13 traces is defined like so:

trace0 = go.Scatter(
    x=df['x'][df['FilterTo'] == 'Filter0'],
    y=df['y'][df['FilterTo'] == 'Filter0'],
    mode='markers',
    name='Filter0',
    text = df['Name'][df['FilterTo'] == 'Filter0'],
    marker=dict(
        size = df['size'][df['FilterTo'] == 'Filter0'],
        sizeref = sizeref,
        sizemode = sizemode,
        color = trace0color
    )
)

My Layout:

layout = go.Layout(
    title='Title',
    xaxis=dict(
        title='x',
        titlefont=dict(
            family='Verdana',
            size=18
        ),
        gridcolor='rgb(255, 255, 255)',
        range=[1, 4],
        zerolinewidth=1,
        ticklen=5,
        gridwidth=2,
    ),
    yaxis=dict(
        title='y',
        titlefont=dict(
            family='Verdana',
            size=18
        ),
        gridcolor='rgb(255, 255, 255)',
        range=[1, 4],
        zerolinewidth=1,
        ticklen=5,
        gridwidth=2,
    ),
    paper_bgcolor='rgb(243, 243, 243)',
    plot_bgcolor='rgb(243, 243, 243)',
)

Really appreciate your help! Thanks a lot :slight_smile:

@rStorms Can you please chat a link to your graph here?