Skip to content

Context support#463

Closed
cvanelteren wants to merge 93 commits intoproplot-dev:masterfrom
cvanelteren:context_support
Closed

Context support#463
cvanelteren wants to merge 93 commits intoproplot-dev:masterfrom
cvanelteren:context_support

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