Easier custom style and an example for it #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.