File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Original file line number Diff line number Diff line change @@ -468,10 +468,7 @@ def get_usetex(self):
468
468
return self ._usetex
469
469
470
470
def set_usetex (self , val ):
471
- if val is None :
472
- self ._usetex = mpl .rcParams ['text.usetex' ]
473
- else :
474
- self ._usetex = val
471
+ self ._usetex = mpl ._val_or_rc (val , 'text.usetex' )
475
472
476
473
usetex = property (fget = get_usetex , fset = set_usetex )
477
474
@@ -1481,9 +1478,9 @@ def get_offset(self):
1481
1478
if self ._useMathText or self ._usetex :
1482
1479
if sciNotStr != '' :
1483
1480
sciNotStr = r'\times%s' % sciNotStr
1484
- s = fr '${ sciNotStr } { offsetStr } $'
1481
+ s = f '${ sciNotStr } { offsetStr } $'
1485
1482
else :
1486
- s = '' . join (( sciNotStr , offsetStr ))
1483
+ s = sciNotStr + offsetStr
1487
1484
return self .fix_minus (s )
1488
1485
return ''
1489
1486
You can’t perform that action at this time.
0 commit comments