8000 add sans alias to rc() to allow users to set font.sans-serif · matplotlib/matplotlib@fa3f5f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa3f5f5

Browse files
committed
add sans alias to rc() to allow users to set font.sans-serif
1 parent 6dcfa9d commit fa3f5f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,17 +995,18 @@ def rc(group, **kwargs):
995995
996996
The following aliases are available to save typing for interactive users:
997997
998-
===== =================
998+
====== =================
999999
Alias Property
1000-
===== =================
1000+
====== =================
10011001
'lw' 'linewidth'
10021002
'ls' 'linestyle'
10031003
'c' 'color'
10041004
'fc' 'facecolor'
10051005
'ec' 'edgecolor'
10061006
'mew' 'markeredgewidth'
10071007
'aa' 'antialiased'
1008-
===== =================
1008+
'sans' 'sans-serif'
1009+
====== =================
10091010
10101011
Thus you could abbreviate the above call as::
10111012
@@ -1039,6 +1040,7 @@ def rc(group, **kwargs):
10391040
'ec': 'edgecolor',
10401041
'mew': 'markeredgewidth',
10411042
'aa': 'antialiased',
1043+
'sans': 'sans-serif',
10421044
}
10431045

10441046
if isinstance(group, str):

0 commit comments

Comments
 (0)
0