Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 998a900

Browse files
committed
BUG : fix for text path rendering issues
Suggested by @leejjoon. Fixes #2889
1 parent 1472dfc commit 998a900

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/matplotlib/patheffects.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class PathEffectRenderer(RendererBase):
8787
8888
This proxy then intercepts draw calls, calling the appropriate
8989
:class:`AbstractPathEffect` draw method.
90-
90+
9191
.. note::
9292
Not all methods have been overridden on this RendererBase subclass.
9393
It may be necessary to add further methods to extend the PathEffects
@@ -152,6 +152,9 @@ def draw_path_collection(self, gc, master_transform, paths, *args,
152152
renderer.draw_path_collection(gc, master_transform, paths,
153153
*args, **kwargs)
154154

155+
def points_to_pixels(self, points):
156+
return self._renderer.points_to_pixels(points)
157+
155158
def _draw_text_as_path(self, gc, x, y, s, prop, angle, ismath):
156159
# Implements the naive text drawing as is found in RendererBase.
157160
path, transform = self._get_text_path_transform(x, y, s, prop,

0 commit comments

Comments
 (0)