Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Context support #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 93 commits into from
Closed

Conversation

cvanelteren
Copy link

@cvanelteren cvanelteren commented Aug 20, 2024

Allows for using a temporary style on a plot. This builds on-wards from #459

image

import proplot as plt
import numpy as np


fig, ax = plt.subplots(ncols=3)
ax.imshow(np.random.rand(10, 10))
ax.format(xlabel="x")

with plt.context("poster", after_reset=True):
    fig, ax = plt.subplots()
    ax.imshow(np.random.rand(10, 10))
    ax.format(xlabel="x")

fig, ax = plt.subplots()
ax.imshow(np.random.rand(10, 10))
ax.format(xlabel="x")
plt.show(block=1)

@cvanelteren
Copy link
Author

Just saw that this is already implemented:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants