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

Skip to content

Commit d791810

Browse files
committed
Fix stix_font_demo.py
svn path=/trunk/matplotlib/; revision=6749
1 parent 31dd679 commit d791810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ def copy(self):
22962296
def _get_font(self):
22972297
return self._font
22982298
def _set_font(self, name):
2299-
if name in Parser._fontnames:
2299+
if name in ('rm', 'it', 'bf'):
23002300
self.font_class = name
23012301
self._font = name
23022302
font = property(_get_font, _set_font)

0 commit comments

Comments
 (0)