Skip to content

autoscale context manager #5510

Closed
Closed

Description

@anntzer

Currently, {plt,Axes}.autoscale returns None. Any thoughts on turning it into a context manager?

Activity

  1. mdboom commented on Nov 18, 2015

    @mdboom
    Member

    I have no objections from an API point of view.

  2. tacaswell commented on Nov 18, 2015

    @tacaswell
    Member

    How can that be done in a back-compatible way?

  3. mdboom commented on Nov 18, 2015

    @mdboom
    Member

    If the context manager takes effect in __init__ rather than __enter__ it will ways take effect, even if the caller does nothing with it (the current API). The only difference would be to have the effect reverted in __exit__.

  4. tacaswell commented on Nov 18, 2015

    @tacaswell
    Member

    ah, cute!

  5. mdboom commented on Nov 19, 2015

    @mdboom
    Member

    @anntzer: Were you offering to make a pull request?

  6. anntzer commented on Nov 19, 2015

    @anntzer
    ContributorAuthor

    Perhaps in a few days.

  7. anntzer commented on Apr 16, 2017

    @anntzer
    ContributorAuthor

    Closing due to #5538 (comment) (not realistically possible for now).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions