Skip to content
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

Allow custom rc settings #236

Closed
cvanelteren opened this issue Jan 25, 2025 · 2 comments
Closed

Allow custom rc settings #236

cvanelteren opened this issue Jan 25, 2025 · 2 comments

Comments

@cvanelteren
Copy link

Hi there,

Am I correct in seeing that using pytest-mpl removes rc changes prior to plotting? We are trying to incorporate pytest-mpl in our packages (shameless plug), but found out that the image returns a default style rather than the curated style that we aim to reach. Is it possible to ensure that our changed context is used when comparing the images using pytest-mpl?
Thanks in advance!
C

@cvanelteren
Copy link
Author

In particular I am referring to potentially this line:

with plt.rc_context(rc=extra_rcparams):
, causing an issue

@cvanelteren
Copy link
Author

After browsing the source code I see that we can overwrite it with --mpl-default-style

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

No branches or pull requests

1 participant