Files
Info_edupage/.venv/lib/python3.9/site-packages/matplotlib/tests/test_texmanager.py
Untriex Programming 6544d16770 Revert "Delete .venv directory"
This reverts commit 5a2693bd9f.
2021-08-31 22:26:50 +02:00

19 lines
457 B
Python

import matplotlib.pyplot as plt
from matplotlib.texmanager import TexManager
def test_fontconfig_preamble():
"""
Test that the preamble is included in _fontconfig
"""
plt.rcParams['text.usetex'] = True
tm1 = TexManager()
font_config1 = tm1.get_font_config()
plt.rcParams['text.latex.preamble'] = '\\usepackage{txfonts}'
tm2 = TexManager()
font_config2 = tm2.get_font_config()
assert font_config1 != font_config2