Skip to content

Bug Report: legends on panels overlaps #669

Open
@kkzhang

Description

@kkzhang

Describe the bug
When multiple addplots exists in a panel, their label overlaps.

To Reproduce

data["col1"] = np.random.rand(len(data))
data["col2"] = np.random.rand(len(data))

addplots = [
    mpf.make_addplot(data["col1"], label="col1", panel=1),
    mpf.make_addplot(data["col2"], label="col2", panel=1)
]

mpf.plot(data, type="candle", addplot=addplots)

Expected behavior
legends should be vertical stacked

Screenshots
image

Additional context
if panel=0, it's all ok.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions