Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/matplotlib/axes/_axes.py
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
  • Loading branch information
hasanrashid and timhoffm authored Dec 21, 2025
commit 82810c4258804616effe58eaa88fbd18a2db383a
3 changes: 1 addition & 2 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9068,8 +9068,7 @@ def violin(self, vpstats, positions=None, vert=None,
# Checking only the first element is good enough for standard misuse cases
if N > 0: # No need to validate if there is not data
pos0 = positions[0]
width0 = (pre_conversion_widths if np.isscalar(pre_conversion_widths)
else pre_conversion_widths[0])
width0 = widths[0]
if (isinstance(pos0, (datetime.datetime, datetime.date))
and not isinstance(width0, datetime.timedelta)):
raise TypeError(
Expand Down
Loading