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

Skip to content

Commit f02efaf

Browse files
committed
Bugfix: [ 1808189 ] lw kwarg broken in errorbar (Thanks Joe Monaco).
svn path=/trunk/matplotlib/; revision=4195
1 parent 5a7c3a3 commit f02efaf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/matplotlib/collections.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,7 @@ def set_linewidth(self, lw):
217217
ACCEPTS: float or sequence of floats
218218
"""
219219
self._linewidths = self._get_value(lw)
220-
221-
def set_linewidths(self, lw):
222-
self.set_linewidth(lw)
220+
set_linewidths = set_lw = set_linewidth
223221

224222
def set_color(self, c):
225223
"""
@@ -798,7 +796,8 @@ def set_linewidth(self, lw):
798796
"""
799797

800798
self._lw = self._get_value(lw)
801-
799+
set_linewidths = set_lw = set_linewidth
800+
802801
def set_linestyle(self, ls):
803802
"""
804803
Set the linestyles(s) for the collection.

0 commit comments

Comments
 (0)