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

Skip to content

Commit 0dbe1a3

Browse files
committed
add custom preamble to tex caching
svn path=/trunk/matplotlib/; revision=3277
1 parent f04aa79 commit 0dbe1a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def __init__(self):
163163
r'\usepackage{textcomp}'])
164164

165165
def get_basefile(self, tex, fontsize, dpi=None):
166-
s = tex + self._fontconfig + ('%f'%fontsize)
166+
s = tex + self._fontconfig + ('%f'%fontsize) + self.get_custom_preamble()
167167
if dpi: s += ('%s'%dpi)
168168
return os.path.join(self.texcache, md5.md5(s).hexdigest())
169169

0 commit comments

Comments
 (0)