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

Skip to content

Commit c144376

Browse files
committed
backend_agg.draw_marker quantizes the main path (checking in a missed file)
svn path=/trunk/matplotlib/; revision=7235
1 parent 8002de5 commit c144376

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/_backend_agg.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,13 +542,17 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
542542
PathIterator marker_path(marker_path_obj);
543543
transformed_path_t marker_path_transformed(marker_path, marker_trans);
544544
quantize_t marker_path_quantized(marker_path_transformed,
545-
gc.quantize_mode,
545+
gc.quantize_mode,
546546
marker_path.total_vertices());
547547
curve_t marker_path_curve(marker_path_quantized);
548548

549549
PathIterator path(path_obj);
550550
transformed_path_t path_transformed(path, trans);
551-
path_transformed.rewind(0);
551+
quantize_t path_quantized(path_transformed,
552+
gc.quantize_mode,
553+
path.total_vertices());
554+
curve_t path_curve(path_quantized);
555+
path_curve.rewind(0);
552556

553557
facepair_t face = _get_rgba_face(face_obj, gc.alpha);
554558

@@ -597,7 +601,7 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
597601
agg::serialized_scanlines_adaptor_aa8::embedded_scanline sl;
598602

599603
if (has_clippath) {
600-
while (path_transformed.vertex(&x, &y) != agg::path_cmd_stop) {
604+
while (path_curve.vertex(&x, &y) != agg::path_cmd_stop) {
601605
if (MPL_notisfinite64(x) || MPL_notisfinite64(y)) {
602606
continue;
603607
}
@@ -618,7 +622,7 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
618622
agg::render_scanlines(sa, sl, ren);
619623
}
620624
} else {
621-
while (path_transformed.vertex(&x, &y) != agg::path_cmd_stop) {
625+
while (path_curve.vertex(&x, &y) != agg::path_cmd_stop) {
622626
if (MPL_notisfinite64(x) || MPL_notisfinite64(y)) {
623627
continue;
624628
}

0 commit comments

Comments
 (0)