-
Notifications
You must be signed in to change notification settings - Fork 57
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
PN colorscheme in docs/tutorials #123
Conversation
Personally, I don't agree with not using |
Haha there we go, formatting plots is just too subjective to have a single "correct" way of doing it :D I think there are three potential solutions which would each avoid unnecessarily long arguments about matplotlib-fonts (which I would like to avoid at any costs):
|
I like how the provided .pdf files look so I'm fine with the defaults you propose. The default colors only contain orange and green, right? How well does it work when plotting a third function? I don't have strong feelings about using tex. There are definitely cases in which we want to use it, but I personally don't care if it's a default setting or not. I don't think we can get rid of all plot customization forever, there will always be something that you might want to adjust in order to make a plot look better. So I guess I'm not really helpful to resolve that argument :D |
Let's discuss in the PN Software Interest Group meeting today. I think we should definitely have your style file in the repo either with |
Decision from PN Software Interest Group: |
Update: |
The merge conflict was too annoying to fix it in place. I close this PR in favour of #177. |
Using
plt.style.use("probnum.mplstyle")
one can get the following plotting style (compared to the default matplotlib style):styledefault.pdf
styleprobnum.mplstyle.pdf
first_order_linearisation.pdf
Essentially, anything that was defined through
plt.rcParams
before is now contained in this file.The major changes compared to the default are: figure size, top and right axes removed, pn-orange-green as default colors, fileformat pdf plus some linewidth changes.
Difference to the previous rcParams:
usetex
is set toFalse
(it takes ages to render, the axes ticks look super weird and basic sub/superscripts as well as blackboard bold work without)Not done yet: adapt all notebooks, so far only the ODE related tutorials use this file.