From: <md...@us...> - 2010-06-24 17:12:32
|
Revision: 8463 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8463&view=rev Author: mdboom Date: 2010-06-24 17:12:26 +0000 (Thu, 24 Jun 2010) Log Message: ----------- Clipping to the figure rectangle doesn't work on curves, so turn it off in that case. Modified Paths: -------------- trunk/matplotlib/src/_backend_agg.cpp Modified: trunk/matplotlib/src/_backend_agg.cpp =================================================================== --- trunk/matplotlib/src/_backend_agg.cpp 2010-06-24 17:05:49 UTC (rev 8462) +++ trunk/matplotlib/src/_backend_agg.cpp 2010-06-24 17:12:26 UTC (rev 8463) @@ -1304,7 +1304,7 @@ trans *= agg::trans_affine_scaling(1.0, -1.0); trans *= agg::trans_affine_translation(0.0, (double)height); - bool clip = !face.first && gc.hatchpath.isNone(); + bool clip = !face.first && gc.hatchpath.isNone() && !path.has_curves(); bool simplify = path.should_simplify() && clip; transformed_path_t tpath(path, trans); @@ -1498,7 +1498,7 @@ } } - bool do_clip = !face.first && gc.hatchpath.isNone(); + bool do_clip = !face.first && gc.hatchpath.isNone() && !has_curves; if (check_snap) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |