Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d9c5b5

Browse files
committed
added default font ordering to rc init
svn path=/trunk/matplotlib/; revision=3131
1 parent c6f65d2 commit 9d9c5b5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/matplotlib/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,11 @@ def __call__(self, s):
752752
'font.stretch' : ['normal', str], #
753753
'font.weight' : ['normal', str], #
754754
'font.size' : [12.0, validate_float], #
755-
'font.serif' : ['serif', validate_comma_sep_str],
756-
'font.sans-serif' : ['sans-serif', validate_comma_sep_str],
757-
'font.cursive' : ['cursive', validate_comma_sep_str],
758-
'font.fantasy' : ['fantasy', validate_comma_sep_str],
759-
'font.monospace' : ['monospace', validate_comma_sep_str],
755+
'font.serif' : ['Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif', validate_comma_sep_str],
756+
'font.sans-serif' : ['Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif', validate_comma_sep_str],
757+
'font.cursive' : ['Apple Chancery, Textile, Zapf Chancery, Sand, cursive', validate_comma_sep_str],
758+
'font.fantasy' : ['Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy', validate_comma_sep_str],
759+
'font.monospace' : ['Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace', validate_comma_sep_str],
760760

761761
# text props
762762
'text.color' : ['k', validate_color], # black

lib/matplotlib/mpl-data/matplotlibrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#### CONFIGURATION BEGINS HERE
2727
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
2828
# Agg Cairo GD GDK Paint PS PDF SVG Template
29-
backend : WXAgg
29+
backend : TkAgg
3030
numerix : numpy # numpy, Numeric or numarray
3131
units : True
3232
#interactive : False # see http://matplotlib.sourceforge.net/interactive.html

0 commit comments

Comments
 (0)