Skip to content

Commit d8f2e17

Browse files
committed
Error on empty offsets in get_path_collection_extents
1 parent 028f07c commit d8f2e17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/path.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,8 @@ def get_path_collection_extents(
10651065
from .transforms import Bbox
10661066
if len(paths) == 0:
10671067
raise ValueError("No paths provided")
1068+
if len(offsets) == 0:
1069+
raise ValueError("No offsets provided")
10681070
extents, minpos = _path.get_path_collection_extents(
10691071
master_transform, paths, np.atleast_3d(transforms),
10701072
offsets, offset_transform)

0 commit comments

Comments
 (0)