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

Skip to content

Commit 980f6ef

Browse files
authored
Merge pull request #10299 from anntzer/texmanager-cache-keys
Invalidate texmanager cache when any text.latex.* rc changes.
2 parents 1de2363 + fd7c87d commit 980f6ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/texmanager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ class TexManager(object):
100100
'computer modern typewriter': ('cmtt', '')}
101101

102102
_rc_cache = None
103-
_rc_cache_keys = (('text.latex.preamble', ) +
104-
tuple(['font.' + n for n in ('family', ) +
105-
font_families]))
103+
_rc_cache_keys = (
104+
('text.latex.preamble', 'text.latex.unicode', 'text.latex.preview',
105+
'font.family') + tuple('font.' + n for n in font_families))
106106

107107
def __init__(self):
108108

0 commit comments

Comments
 (0)