-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Support quoted strings in matplotlibrc #22589
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
Conversation
I guess it's OK to not support single quotes or backslash escapes (I'm less sure wrt double quotes in the string, which seem unsupported too?), but the difference with standard python syntax should probably be explicitly noted. |
I am 👍🏻 on this in principle, but something seems wrong with the rcparams parsing. |
88b4a0d
to
fc41ba4
Compare
Ha! Edge case when the line starts with a comment. Tests should pass now. |
I indeed plan to supporting backslash escapes soon. |
This enables using the comment character # within strings. Closes matplotlib#19288. Superseeds matplotlib#22565.
fc41ba4
to
7c378a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets not hold this on other improvements (like single quotes and escaping).
This enables using the comment character # within strings. Also it lets you write hex colors more consistently as "#FFFFFF" rather than FFFFFF (i.e. omitting the hash). We discourage the latter but keep it for backward compatibility.
Closes #19288.
Superseeds #22565.