Skip to content

Commit e018616

Browse files
committed
Merge pull request #3081 from pelson/points_to_pixels
Points to pixels
2 parents 0d4c559 + 0230b84 commit e018616

File tree

10 files changed

+280
-254
lines changed

10 files changed

+280
-254
lines changed

doc/api/api_changes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ original location:
5454
the upper and lower limits (*lolims*, *uplims*, *xlolims*, *xuplims*) now
5555
point in the correct direction.
5656

57+
* A bug has been fixed in the path effects rendering of fonts, which now means
58+
that the font size is consistent with non-path effect fonts. See
59+
https://github.com/matplotlib/matplotlib/issues/2889 for more detail.
60+
5761
* The Sphinx extensions `ipython_directive` and
5862
`ipython_console_highlighting` have been moved to the IPython
5963
project itself. While they remain in matplotlib for this release,

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
# General substitutions.
7171
project = 'Matplotlib'
72-
copyright = '2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team; 2012 - 2013 The matplotlib development team'
72+
copyright = '2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team; 2012 - 2014 The matplotlib development team'
7373

7474
# The default replacements for |version| and |release|, also used in various
7575
# other places throughout the built documents.

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,
Binary file not shown.

0 commit comments

Comments
 (0)