Skip to content

Unexpected border in legend #503

@User134806

Description

@User134806

When using bar interval plots, an unexpected border appears around the legend entry. But it seems that this is also the case for other types of graph. See for example Unexpected borders on legends of stacked bars in pgfplots and Unexpected border in legend with bar interval plots.

Image

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
    \begin{axis}[ybar interval, legend entries={A legend}]
        \addplot+[fill=red!50!white, 
        draw=none,
        % draw opacity=0,
        ]
        coordinates {(0,2) (0.1,1) (0.3,0.5) (0.35,4) (0.5,3) (0.6,2) (0.7,1.5) (1,1.5)};
    \end{axis}
\end{tikzpicture}
\end{document}

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