Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc89454

Browse files
committed
Clipping to the figure rectangle doesn't work on curves, so turn it off in that case.
svn path=/trunk/matplotlib/; revision=8463
1 parent 17b26f5 commit dc89454

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/_backend_agg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ RendererAgg::draw_path(const Py::Tuple& args)
13041304

13051305
trans *= agg::trans_affine_scaling(1.0, -1.0);
13061306
trans *= agg::trans_affine_translation(0.0, (double)height);
1307-
bool clip = !face.first && gc.hatchpath.isNone();
1307+
bool clip = !face.first && gc.hatchpath.isNone() && !path.has_curves();
13081308
bool simplify = path.should_simplify() && clip;
13091309

13101310
transformed_path_t tpath(path, trans);
@@ -1498,7 +1498,7 @@ RendererAgg::_draw_path_collection_generic
14981498
}
14991499
}
15001500

1501-
bool do_clip = !face.first && gc.hatchpath.isNone();
1501+
bool do_clip = !face.first && gc.hatchpath.isNone() && !has_curves;
15021502

15031503
if (check_snap)
15041504
{

0 commit comments

Comments
 (0)