8000 Legend Title Left Alignment · Issue #12388 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Legend Title Left Alignment #12388
Closed
@Marriaga

Description

@Marriaga

I'm trying to align my legend title on the left of the legend box. I assumed this would work:

leg = ax.get_legend()
title_inst = leg.get_title()
title_inst.set_horizontalalignment('left')

However only this worked:

leg = ax.get_legend()
leg._legend_box.align = "left"

Seems like something is not working as expected, especially since I'm accessing something hidden.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0