Clean up and move accented text example#8065
Conversation
| Using accented text in matplotlib | ||
| ================================= | ||
|
|
||
| Matplotlib supports accented characters via TeX mathtext. |
There was a problem hiding this comment.
Also supported through regular Unicode characters, though that's not shown here.
There was a problem hiding this comment.
I am 👍 on making this file utf-8 encoded and adding some accented characters.
There was a problem hiding this comment.
Perhaps merge it with unicode_demo.py then? See also #8083.
|
👍 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 |
| # 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.
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.
Buffalo buffalo buffalo buffalo ?
There was a problem hiding this comment.
I guess English would benefit from diacritics too...
There was a problem hiding this comment.
Thanks for the suggestions!
I thought I'd kick off the docathon by moving and cleaning the first example in
pylab_examples.