From e0f917690d02f3a976dcac27e4849ce912b0abd0 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 25 Sep 2012 10:12:30 -0400 Subject: [PATCH 1/2] Fix circle marker -- it shouldn't be snapped because it contains bezier curves. --- lib/matplotlib/markers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/markers.py b/lib/matplotlib/markers.py index 26e6e91f17d4..fe1fc9eb6740 100644 --- a/lib/matplotlib/markers.py +++ b/lib/matplotlib/markers.py @@ -276,7 +276,7 @@ def _half_fill(self): def _set_circle(self, reduction = 1.0): self._transform = Affine2D().scale(0.5 * reduction) - self._snap_threshold = 3.0 + self._snap_threshold = None fs = self.get_fillstyle() if not self._half_fill(): self._path = Path.unit_circle() From 6a3cc745d5d124ca6b30e38dc12e98cc24aecb8e Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 25 Sep 2012 11:12:04 -0400 Subject: [PATCH 2/2] Use a snap threshold of 6.0 for the circle marker. --- lib/matplotlib/markers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/markers.py b/lib/matplotlib/markers.py index fe1fc9eb6740..ec41869b22ed 100644 --- a/lib/matplotlib/markers.py +++ b/lib/matplotlib/markers.py @@ -276,7 +276,7 @@ def _half_fill(self): def _set_circle(self, reduction = 1.0): self._transform = Affine2D().scale(0.5 * reduction) - self._snap_threshold = None + self._snap_threshold = 6.0 fs = self.get_fillstyle() if not self._half_fill(): self._path = Path.unit_circle()