Change `legend` to accept `alpha` instead of (only) `framealpha`. · Issue #6363 · matplotlib/matplotlib · GitHub
Skip to content

Change legend to accept alpha instead of (only) framealpha. #6363

Description

@lzkelley

It seems this parameter name comes from the internal parameter being set, e.g. leg.get_frame().set_alpha(0.5), but it seems like it would make much more sense from an API perspective if one could simply use the argument alpha, i.e.

plt.legend(alpha=0.5) instead of plt.legend(framealpha=0.5).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: changesChanges to the public API, typically requiring deprecation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions