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

Skip to content

Commit fd7c87d

Browse files
committed
Invalidate texmanager cache when any text.latex.* rc changes.
Previously, changes to the text.latex.unicode or text.latex.preview rcParams (which do change the autogenerated preamble) would not invalidate the tex cache.
1 parent 4753f6c commit fd7c87d

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
@@ -126,9 +126,9 @@ class TexManager(object):
126126
'computer modern typewriter': ('cmtt', '')}
127127

128128
_rc_cache = None
129-
_rc_cache_keys = (('text.latex.preamble', ) +
130-
tuple(['font.' + n for n in ('family', ) +
131-
font_families]))
129+
_rc_cache_keys = (
130+
('text.latex.preamble', 'text.latex.unicode', 'text.latex.preview',
131+
'font.family') + tuple('font.' + n for n in font_families))
132132

133133
def __init__(self):
134134

0 commit comments

Comments
 (0)