File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 31
31
import numpy as np
32
32
33
33
import matplotlib as mpl
34
- from matplotlib import _api , cbook , dviread
34
+ from matplotlib import cbook , dviread
35
35
36
36
_log = logging .getLogger (__name__ )
37
37
@@ -105,15 +105,6 @@ def __new__(cls):
105
105
Path (cls .texcache ).mkdir (parents = True , exist_ok = True )
106
106
return object .__new__ (cls )
107
107
108
- @_api .deprecated ("3.6" )
109
- def get_font_config (self ):
110
- preamble , font_cmd = self ._get_font_preamble_and_command ()
111
- # Add a hash of the latex preamble to fontconfig so that the
112
- # correct png is selected for strings rendered with same font and dpi
113
- # even if the latex preamble changes within the session
114
- preambles = preamble + font_cmd + self .get_custom_preamble ()
115
- return hashlib .md5 (preambles .encode ('utf-8' )).hexdigest ()
116
-
117
108
@classmethod
118
109
def _get_font_family_and_reduced (cls ):
119
110
"""Return the font family name and whether the font is reduced."""
You can’t perform that action at this time.
0 commit comments