Skip to content

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