Skip to content

Commit

Permalink
BUG : fix for text path rendering issues
Browse files Browse the repository at this point in the history
Suggested by @leejjoon.

Fixes matplotlib#2889
  • Loading branch information
tacaswell committed May 9, 2014
1 parent 1472dfc commit 998a900
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/matplotlib/patheffects.py
Expand Up @@ -87,7 +87,7 @@ class PathEffectRenderer(RendererBase):
This proxy then intercepts draw calls, calling the appropriate
:class:`AbstractPathEffect` draw method.
.. note::
Not all methods have been overridden on this RendererBase subclass.
It may be necessary to add further methods to extend the PathEffects
Expand Down Expand Up @@ -152,6 +152,9 @@ def draw_path_collection(self, gc, master_transform, paths, *args,
renderer.draw_path_collection(gc, master_transform, paths,
*args, **kwargs)

def points_to_pixels(self, points):
return self._renderer.points_to_pixels(points)

def _draw_text_as_path(self, gc, x, y, s, prop, angle, ismath):
# Implements the naive text drawing as is found in RendererBase.
path, transform = self._get_text_path_transform(x, y, s, prop,
Expand Down

0 comments on commit 998a900

Please sign in to comment.