Skip to content

[MNT]: Do not accept arbitrary positional parameters in Figure.add_axes() #25835

@timhoffm

Description

@timhoffm

Summary

image

seen at https://www.modular.com/mojo.

What are the False, 1 parameters? 👀

  • This is not readable
  • I'm surprised this works
  • I suspect extra positional parameters are ignored.

Documentation: https://matplotlib.org/stable/api/figure_api.html#matplotlib.figure.Figure.add_axes

Proposed fix

Check whether the parameters do something.

If so, document add_axes more clearly. if not deprecate extra positional parameters.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions