Skip to content

Commit 89071ad

Browse files
committed
Cleanup and move unicode_demo
1 parent 60c371f commit 89071ad

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

examples/pylab_examples/unicode_demo.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/tests/backend_driver.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
subplots=os.path.join('..', 'subplots_axes_and_figures'),
4343
specialty=os.path.join('..', 'specialty_plots'),
4444
showcase=os.path.join('..', 'showcase'),
45-
reference=os.path.join('..', 'reference'),
4645
pylab = os.path.join('..', 'pylab_examples'),
4746
api = os.path.join('..', 'api'),
4847
units = os.path.join('..', 'units'),
@@ -76,6 +75,10 @@
7675
'pie_demo.py',
7776
]
7877

78+
files['text_labels_and_annotations'] = [
79+
'unicode_demo.py',
80+
]
81+
7982
files['subplots_axes_and_figures'] = [
8083
'subplot_demo.py',
8184
]
@@ -234,7 +237,6 @@
234237
'text_rotation_relative_to_line.py',
235238
'text_themes.py',
236239
'transoffset.py',
237-
'unicode_demo.py',
238240
'vertical_ticklabels.py',
239241
'xcorr_demo.py',
240242
'zorder_demo.py',
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
Demo of unicode support in text and labels.
4+
"""
5+
from __future__ import unicode_literals
6+
7+
import matplotlib.pyplot as plt
8+
9+
10+
plt.title('Développés et fabriqués')
11+
plt.xlabel("réactivité nous permettent d'être sélectionnés et adoptés")
12+
plt.ylabel('André was here!')
13+
plt.text( 0.2, 0.8, 'Institut für Festkörperphysik', rotation=45)
14+
plt.text( 0.4, 0.2, 'AVA (check kerning)')
15+
16+
plt.show()

0 commit comments

Comments
 (0)