Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: legends on panels overlaps #669

Open
kkzhang opened this issue May 17, 2024 · 0 comments
Open

Bug Report: legends on panels overlaps #669

kkzhang opened this issue May 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kkzhang
Copy link

kkzhang commented May 17, 2024

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

@kkzhang kkzhang added the bug Something isn't working label May 17, 2024
@kkzhang kkzhang changed the title Bug Report: Bug Report: legends on panels overlaps May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant