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

Skip to content

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