Skip to content

Commit b0f06f0

Browse files
committed
Merge pull request matplotlib#2144 from cgohlke/patch-3
BUG: Fix ValueError: setting an array element with a sequence
2 parents e1035ed + 6303b30 commit b0f06f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backend_bases.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,8 @@ def set_dashes(self, dash_offset, dash_list):
873873
874874
"""
875875
if dash_list is not None:
876-
dash_list = np.asarray(dash_list)
877-
if np.any(dash_list <= 0.0):
876+
dl = np.asarray(dash_list)
877+
if np.any(dl <= 0.0):
878878
raise ValueError("All values in the dash list must be positive")
879879
self._dashes = dash_offset, dash_list
880880

0 commit comments

Comments
 (0)