Skip to content

Nested calls to rc.context() fail #80

Description

@lukelbd

You can end up with persistent changes to the rc object if rc.context() statements are nested. Most notably

import proplot as plot
with plot.rc.context(...):
    f, ax = plot.subplots()
    ax.format(...)

fails because ax.format calls rc.context(...) internally. #50 will fix this (I ended up putting some quite tangentially related stuff in that PR... will try to avoid this in the future).

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions