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 3131import numpy as np
3232
3333import matplotlib as mpl
34- from matplotlib import _api , cbook , dviread
34+ from matplotlib import cbook , dviread
3535
3636_log = logging .getLogger (__name__ )
3737
@@ -105,15 +105,6 @@ def __new__(cls):
105105 Path (cls .texcache ).mkdir (parents = True , exist_ok = True )
106106 return object .__new__ (cls )
107107
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-
117108 @classmethod
118109 def _get_font_family_and_reduced (cls ):
119110 """Return the font family name and whether the font is reduced."""
You can’t perform that action at this time.
0 commit comments