Skip to content

Legend.get_window_extent now requires a renderer #11970

Closed

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).

Activity

  1. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Aug 29, 2018
  2. added this to the v3.0 milestone on Aug 29, 2018
  3. added 4 commits that reference this issue on Aug 29, 2018
    619563b
    9f27f65
    e1e4307
    873ae23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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