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

fix the bug by taking the style directly from sns #186

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

patrickleonardy
Copy link
Contributor

@patrickleonardy patrickleonardy commented Oct 31, 2023

Matplotlib styles bug fix

❗ Is the last change acceptable or will this break stuff? ❗

Changes made

  • with plt.style.context("seaborn-whitegrid"): --> with sns.axes_style("whitegrid")
  • with plt.style.context("seaborn-ticks"): --> with sns.axes_style("ticks")
  • added tests to see if the plotting function throw errors or not
  • changed the plotting such that they return a plot instead of showing it

How does the solution address the problem

By setting the styles directly with sns.set_theme we access the styles directly and do not rely on matplotlib to be up-to-date / have the same naming as we have in our code.

Additional thoughts

By setting the styles directly with sns.axes_style

Linked issues

resolves #184

@patrickleonardy patrickleonardy added the bug Something isn't working label Oct 31, 2023
@patrickleonardy patrickleonardy self-assigned this Oct 31, 2023
@patrickleonardy patrickleonardy linked an issue Oct 31, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Matplotlib styles bug fix
2 participants