Skip to content

legends are not wrapped correctly #1506

Description

@Zaf4

When there are multiple legends, lets-plot have hard time to fit them into to canvas. I have an example below to demonstrate the problem. This one is with gggrid but I happened to encounter the problem with single plots when there are multiple legends, I can provide examples if needed.

Here is the multi-legend overflow example. There should be 7 legends shown, but only 3 (2 of them partially) appear. I am aware that this is an extreme case, but this can happen with even two legends.

Image

Note that: I highlighted the plot borders (red), legend borders (blue) and grid border gray!

I believe legends should wrap automatically (may be in a grid format) and/or the canvas should grow to fit all the legends.

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