@@ -4777,8 +4777,8 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
4777
4777
4778
4778
for name , array in [('x' , x ), ('y1' , y1 ), ('y2' , y2 )]:
4779
4779
if array .ndim > 1 :
4780
- raise ValueError ('Input passed into argument "' + name +
4781
- '" is not 1-dimensional.' )
4780
+ raise ValueError ('Input passed into argument "%r"' % name +
4781
+ 'is not 1-dimensional.' )
4782
4782
4783
4783
if y1 .ndim == 0 :
4784
4784
y1 = np .ones_like (x ) * y1
@@ -4941,10 +4941,10 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
4941
4941
x1 = ma .masked_invalid (self .convert_xunits (x1 ))
4942
4942
x2 = ma .masked_invalid (self .convert_xunits (x2 ))
4943
4943
4944
- for array in [('x ' , x ), ('y1 ' , y1 ), ('y2 ' , y2 )]:
4945
- if array [ 1 ] .ndim > 1 :
4946
- raise ValueError ('Input passed into argument "' + array [ 0 ] +
4947
- '" is not 1-dimensional.' )
4944
+ for name , array in [('y ' , y ), ('x1 ' , x1 ), ('x2 ' , x2 )]:
4945
+ if array .ndim > 1 :
4946
+ raise ValueError ('Input passed into argument "%r"' % name +
4947
+ 'is not 1-dimensional.' )
4948
4948
4949
4949
if x1 .ndim == 0 :
4950
4950
x1 = np .ones_like (y ) * x1
0 commit comments