Skip to content

Make the legend_justification parameter more flexible #1028

@ASmirnov-HORIS

Description

@ASmirnov-HORIS

Currently, the only available string value for legend_justification is 'centre'. But it would also be useful to be able to set 'top', 'bottom', 'left' and 'right'.

For example, in ggplot2, such plot could easily be obtained with legend.position = 'top' and legend.justification = 'right':

In Lets-Plot, to achieve the same, you have to use a fine-tuned combination of parameters like legend_position=[.8, 1], legend_justification=[0, 1], legend_direction='horizontal' and, in addition, move the panel down, otherwise the legend will be drawn on top of it:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions