Revision: 8805 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8805&view=rev Author: mdboom Date: 2010-11-17 15:31:27 +0000 (Wed, 17 Nov 2010)
Log Message: ----------- Improve exception error message when converting Python bounding box to C++ Modified Paths: -------------- trunk/matplotlib/src/agg_py_transforms.cpp Modified: trunk/matplotlib/src/agg_py_transforms.cpp =================================================================== --- trunk/matplotlib/src/agg_py_transforms.cpp 2010-11-17 04:37:27 UTC (rev 8804) +++ trunk/matplotlib/src/agg_py_transforms.cpp 2010-11-17 15:31:27 UTC (rev 8805) @@ -77,7 +77,7 @@ if (!bbox || PyArray_NDIM(bbox) != 2 || PyArray_DIM(bbox, 0) != 2 || PyArray_DIM(bbox, 1) != 2) { throw Py::TypeError - ("Argument 3 to agg_to_gtk_drawable must be a Bbox object."); + ("Expected a bbox array"); } l = *(double*)PyArray_GETPTR2(bbox, 0, 0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins