Skip to content

Plots.Scatter Produces Legend Entries with Line Styles #188

Description

@tawheeler

I've been experiencing an issue where using Plots.Scatter and then producing a legend causes those legend entries to have lines:

image

Plots.Scatter([x[1] for x in xs_est], [x[2] for x in xs_est],
                style="mark=$shape, mark size=2, mark options={draw=black, fill=black}",
                legendentry=typename
        )

My current workaround is to plot with Plots.Linear(..., style="draw=white, ..."). Using draw=none causes the same problem to occur. This workaround can cause new problems, where the white line then shows up when it crosses over something else.

This may be a problem inherent to PGFPlots, but I have to believe there is a way to solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions