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

Skip to content

Commit 8a75cdb

Browse files
committed
Fix disappearing small markers problem.
svn path=/trunk/matplotlib/; revision=6462
1 parent 3ae9221 commit 8a75cdb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/_backend_agg.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,11 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
493493
trans *= agg::trans_affine_translation(0.0, (double)height);
494494

495495
PathIterator marker_path(marker_path_obj);
496-
// The built-in markers look better if snapping is turned on.
497-
const bool marker_snap = true;
498-
// bool marker_snap = should_snap(marker_path, marker_trans);
496+
// The built-in markers look better if snapping is turned on, but
497+
// unfortunately, it can cause really small things to disappear.
498+
// Disabling for now to revisit at a later date.
499+
// const bool marker_snap = true;
500+
bool marker_snap = should_snap(marker_path, marker_trans);
499501
transformed_path_t marker_path_transformed(marker_path, marker_trans);
500502
simplify_t marker_path_simplified(marker_path_transformed, marker_snap, false, width, height);
501503
curve_t marker_path_curve(marker_path_simplified);

0 commit comments

Comments
 (0)