8000 Fallback to free fonts in text · matplotlib/matplotlib@7925a32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7925a32

Browse files
committed
Fallback to free fonts in text
1 parent 8301087 commit 7925a32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/pylab_examples/text_handles.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def f(t):
2525
xtext = xlabel('time (s)')
2626

2727
setp(ttext, size='large', color='r', style='italic')
28-
setp(xtext, size='medium', name='courier', weight='bold', color='g')
29-
setp(ytext, size='medium', name='helvetica', weight='light', color='b')
28+
setp(xtext, size='medium', name=['Courier', 'Bitstream Vera Sans Mono'],
29+
weight='bold', color='g')
30+
setp(ytext, size='medium', name=['Helvetica', 'Liberation Sans'],
31+
weight='light', color='b')
3032
show()

0 commit comments

Comments
 (0)
0