-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Clean up and move accented text example #8065
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
|
||
Matplotlib supports accented characters via TeX mathtext. |
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.
Also supported through regular Unicode characters, though that's not shown here.
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.
I am 👍 on making this file utf-8 encoded and adding some accented characters.
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.
Perhaps merge it with unicode_demo.py
then? See also #8083.
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.
LGTM 👍
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.
👍 done. nb. I am just ignoring |
ax.set_title(r'$\ddot{o}\acute{e}\grave{e}\hat{O}' | ||
r'\breve{i}\bar{A}\tilde{n}\vec{q}$', fontsize=20) | ||
|
||
# Shorthand is also supported and curly's are optional |
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.
"curlies" perhaps?
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.
attn @dstansby
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.
curly braces?
# Unicode demo | ||
fig, ax = plt.subplots() | ||
ax.set_title('Développés et fabriqués') | ||
ax.set_xlabel("réactivité nous permettent d'être sélectionnés et adoptés") |
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.
Actually both French sentences are meaningless. If we want to keep some foreign languages, I can propose
GISCARD CHAHUTÉ À L'ASSEMBLÉE
LE COUP DE DÉ DE DE GAULLE
(famous examples where keeping accents on caps is needed for the sentence to make any sense) :-)
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.
Buffalo buffalo buffalo buffalo ?
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.
I guess English would benefit from diacritics too...
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.
Thanks for the suggestions!
I thought I'd kick off the docathon by moving and cleaning the first example in
pylab_examples
.