diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index b4ed7ae22d35..f44d36f8e9d4 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1414,6 +1414,14 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1, else: positions = [np.asanyarray(positions)] + if 'snap' not in kwargs: + _log.warning( + "eventplot: Snapping has been turned off. Snapping may still " + "be turned on manually, but runs the risk of 'missing' data " + "in the outputted graph.") + kwargs['snap'] = False + kwargs['antialiaseds'] = True + poss = [] for position in positions: poss += self._process_unit_info([("x", position)], kwargs) diff --git a/lib/matplotlib/tests/baseline_images/test_axes/eventplot.png b/lib/matplotlib/tests/baseline_images/test_axes/eventplot.png index d8e6c077132e..026ec246b09c 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/eventplot.png and b/lib/matplotlib/tests/baseline_images/test_axes/eventplot.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_defaults.png b/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_defaults.png index 36ac132b43cc..11343f2038d8 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_defaults.png and b/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_defaults.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_problem_kwargs.png b/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_problem_kwargs.png index 3b26157f9ae2..292130f87482 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_problem_kwargs.png and b/lib/matplotlib/tests/baseline_images/test_axes/test_eventplot_problem_kwargs.png differ