Skip to content

Commit 2971440

Browse files
authored
Merge pull request matplotlib#31484 from QuLogic/testing-defaults
MNT: Use new defaults in set_font_settings_for_testing
2 parents cc6cead + 442f8d5 commit 2971440

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

lib/matplotlib/testing/__init__.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@
1919

2020
def set_font_settings_for_testing():
2121
mpl.rcParams['font.family'] = 'DejaVu Sans'
22-
# We've changed the default for ourselves here, but for backwards-compatibility, use
23-
# the old setting if not called in our own tests (which would set
24-
# `_called_from_pytest` from our `conftest.py`).
25-
if getattr(mpl, '_called_from_pytest', False):
26-
mpl.rcParams['text.hinting'] = 'default'
27-
mpl.rcParams['text.hinting_factor'] = 1
28-
else:
29-
mpl.rcParams['text.hinting'] = 'none'
30-
mpl.rcParams['text.hinting_factor'] = 8
22+
mpl.rcParams['text.hinting'] = 'default'
23+
mpl.rcParams['text.hinting_factor'] = 1
3124

3225

3326
def set_reproducibility_for_testing():

0 commit comments

Comments
 (0)