Skip to content

Commit b3b8538

Browse files
committed
Merged revisions 8592,8597 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8592 | mdboom | 2010-07-29 10:09:11 -0400 (Thu, 29 Jul 2010) | 2 lines Remove points_to_pixels_snapto -- since it isn't used anywhere and is now actually incomplete wrt the new stroke-width-aware snapping. ........ r8597 | mdboom | 2010-07-30 08:25:51 -0400 (Fri, 30 Jul 2010) | 1 line Update baseline image for pcolormesh test ........ svn path=/trunk/matplotlib/; revision=8598
1 parent 7ceb74c commit b3b8538

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

src/_backend_agg.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -2244,18 +2244,6 @@ RendererAgg::rgb_to_color(const Py::SeqBase<Py::Object>& rgb, double alpha)
22442244
}
22452245

22462246

2247-
double
2248-
RendererAgg::points_to_pixels_snapto(const Py::Object& points)
2249-
{
2250-
// convert a value in points to pixels depending on renderer dpi and
2251-
// screen pixels per inch
2252-
// snap return pixels to grid
2253-
_VERBOSE("RendererAgg::points_to_pixels_snapto");
2254-
double p = Py::Float(points) ;
2255-
return (int)(p*dpi / 72.0) + 0.5;
2256-
}
2257-
2258-
22592247
double
22602248
RendererAgg::points_to_pixels(const Py::Object& points)
22612249
{

src/_backend_agg.h

-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ class RendererAgg: public Py::PythonExtension<RendererAgg>
230230

231231
protected:
232232
double points_to_pixels(const Py::Object& points);
233-
double points_to_pixels_snapto(const Py::Object& points);
234233
agg::rgba rgb_to_color(const Py::SeqBase<Py::Object>& rgb, double alpha);
235234
facepair_t _get_rgba_face(const Py::Object& rgbFace, double alpha);
236235

0 commit comments

Comments
 (0)