Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
18
venv/Lib/site-packages/matplotlib/tests/test_texmanager.py
Normal file
18
venv/Lib/site-packages/matplotlib/tests/test_texmanager.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue