Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9a3802a

Browse filesBrowse files
committed
CLN: remove unused code path
closes #796
1 parent 6ee9a4d commit 9a3802a
Copy full SHA for 9a3802a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-7
lines changed

‎lib/matplotlib/backends/backend_agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_agg.py
+3-7Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ class RendererAgg(RendererBase):
8585
def __init__(self, width, height, dpi):
8686
if __debug__: verbose.report('RendererAgg.__init__', 'debug-annoying')
8787
RendererBase.__init__(self)
88-
self.texd = maxdict(50) # a cache of tex image rasters
8988

9089
self.dpi = dpi
9190
self.width = width
@@ -245,17 +244,14 @@ def get_text_width_height_descent(self, s, prop, ismath):
245244
d /= 64.0
246245
return w, h, d
247246

248-
249247
def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!', mtext=None):
250248
# todo, handle props, angle, origins
251249
size = prop.get_size_in_points()
252250

253251
texmanager = self.get_texmanager()
254-
key = s, size, self.dpi, angle, texmanager.get_font_config()
255-
im = self.texd.get(key)
256-
if im is None:
257-
Z = texmanager.get_grey(s, size, self.dpi)
258-
Z = np.array(Z * 255.0, np.uint8)
252+
253+
Z = texmanager.get_grey(s, size, self.dpi)
254+
Z = np.array(Z * 255.0, np.uint8)
259255

260256
w, h, d = self.get_text_width_height_descent(s, prop, ismath)
261257
xd = d * np.sin(np.deg2rad(angle))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.