We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc6cead + 442f8d5 commit 2971440Copy full SHA for 2971440
1 file changed
lib/matplotlib/testing/__init__.py
@@ -19,15 +19,8 @@
19
20
def set_font_settings_for_testing():
21
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
+ mpl.rcParams['text.hinting'] = 'default'
+ mpl.rcParams['text.hinting_factor'] = 1
31
32
33
def set_reproducibility_for_testing():
0 commit comments