diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index a8c80cf5d5ba..6528ed566e11 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1189,8 +1189,6 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1, linelengths = [None] if len(linewidths) == 0: lineoffsets = [None] - if len(linewidths) == 0: - lineoffsets = [None] if len(colors) == 0: colors = [None]