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

Easier custom style and an example for it #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

FoamyGuy
Copy link

A quick attempt at an easier way to apply custom style sheets as a resolution for #3

This relies on the existing stylesheet_names configuration option and only extends it to allow attempt to find files local to the code running if it fails to find the named stylesheet within the libraries own files.

With this mechanism you can make your own style sheet template(s) with whatever values you want and easily apply them by setting the stylesheet_names to point to your files.

This was the way that first came to mind for me to try when I was attempting to apply the custom style, I found that it didn't work and when researching what the intended API was I found #3 with the wish for something easier. So I took a shot at implementing the way that I had tried it and it was fairly straight forward.

tests/samples.py was updated to include an example usage of this functionality. It now includes a darker styled version of the Plot sample.

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.

1 participant