Skip to content

Legend.get_window_extent now requires a renderer #11970

Closed
@tacaswell

Description

@tacaswell

See mwaskom/seaborn#1551

import matplotlib.pyplot as plt

leg = plt.legend()
plt.gcf().canvas.draw()
leg.get_window_extent()

The issue seems to be that #10910 switched which of the children from a patch (which seems to not actually need a renderer to sort out it's size) and a Vpacker (which fixes another bug, but really does need the renderer).

Metadata

Metadata

Assignees

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions