File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -891,8 +891,6 @@ def get_math_fontfamily(self):
891
891
892
892
The default font is :rc:`mathtext.fontset`.
893
893
"""
894
- if self ._math_fontfamily is None :
895
- return rcParams ['mathtext.fontset' ]
896
894
return self ._math_fontfamily
897
895
898
896
def set_math_fontfamily (self , fontfamily ):
@@ -915,13 +913,12 @@ def set_math_fontfamily(self, fontfamily):
915
913
.text.Text.get_math_fontfamily
916
914
"""
917
915
if fontfamily is None :
918
- self ._math_fontfamily = None
919
- return
920
-
921
- valid_fonts = _validators ['mathtext.fontset' ].valid .values ()
922
- # _check_in_list() Validates the parameter math_fontfamily as
923
- # if it were passed to rcParams['mathtext.fontset']
924
- _api .check_in_list (valid_fonts , math_fontfamily = fontfamily )
916
+ fontfamily = rcParams ['mathtext.fontset' ]
917
+ else :
918
+ valid_fonts = _validators ['mathtext.fontset' ].valid .values ()
919
+ # _check_in_list() Validates the parameter math_fontfamily as
920
+ # if it were passed to rcParams['mathtext.fontset']
921
+ _api .check_in_list (valid_fonts , math_fontfamily = fontfamily )
925
922
self ._math_fontfamily = fontfamily
926
923
927
924
def copy (self ):
You can’t perform that action at this time.
0 commit comments