File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -891,8 +891,6 @@ def get_math_fontfamily(self):
891891
892892 The default font is :rc:`mathtext.fontset`.
893893 """
894- if self ._math_fontfamily is None :
895- return rcParams ['mathtext.fontset' ]
896894 return self ._math_fontfamily
897895
898896 def set_math_fontfamily (self , fontfamily ):
@@ -915,13 +913,12 @@ def set_math_fontfamily(self, fontfamily):
915913 .text.Text.get_math_fontfamily
916914 """
917915 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 )
925922 self ._math_fontfamily = fontfamily
926923
927924 def copy (self ):
You can’t perform that action at this time.
0 commit comments