Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e7b532

Browse files
committed
Merge remote-tracking branch 'upstream/v1.2.x' into HEAD
Conflicts: src/_backend_agg.cpp
1 parent 83d9cf8 commit 7e7b532

File tree

6 files changed

+1618
-25
lines changed

6 files changed

+1618
-25
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,10 @@ def set_dashes(self, dash_offset, dash_list):
898898
``(None, None)`` specifies a solid line
899899
900900
"""
901+
if dash_list is not None:
902+
dl = np.asarray(dash_list)
903+
if np.any(dl <= 0.0):
904+
raise ValueError("All values in the dash list must be positive")
901905
self._dashes = dash_offset, dash_list
902906

903907
def set_foreground(self, fg, isRGBA=False):
Binary file not shown.

0 commit comments

Comments
 (0)