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
17
venv/Lib/site-packages/matplotlib/tests/test_ttconv.py
Normal file
17
venv/Lib/site-packages/matplotlib/tests/test_ttconv.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from pathlib import Path
|
||||
|
||||
import matplotlib
|
||||
from matplotlib.testing.decorators import image_comparison
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
|
||||
@image_comparison(["truetype-conversion.pdf"])
|
||||
# mpltest.ttf does not have "l"/"p" glyphs so we get a warning when trying to
|
||||
# get the font extents.
|
||||
def test_truetype_conversion(recwarn):
|
||||
matplotlib.rcParams['pdf.fonttype'] = 3
|
||||
fig, ax = plt.subplots()
|
||||
ax.text(0, 0, "ABCDE",
|
||||
font=Path(__file__).with_name("mpltest.ttf"), fontsize=80)
|
||||
ax.set_xticks([])
|
||||
ax.set_yticks([])
|
Loading…
Add table
Add a link
Reference in a new issue