Skip to content

Commit 4d4fe07

Browse files
afvincenttacaswell
authored andcommitted
Fix the phrasing of some sentences.
1 parent 5214a62 commit 4d4fe07

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
11551155
For *linelengths*, *linewidths*, *colors*, and *linestyles*, if only
11561156
a single value is given, that value is applied to all lines. If an
11571157
array-like is given, it must have the same length as *positions*, and
1158-
each row of the array will be applied to the corresponding row or
1159-
column of events.
1158+
each value will be applied to the corresponding row of the array.
11601159
11611160
Example
11621161
-------

lib/matplotlib/collections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,8 +1311,8 @@ def __init__(self,
13111311
if positions is None or len(positions) == 0:
13121312
segments = []
13131313
elif hasattr(positions, 'ndim') and positions.ndim > 1:
1314-
raise ValueError('positions cannot have a dimensionality greater '
1315-
'than 1 (in the ndarray sense)')
1314+
raise ValueError('positions cannot be an array with more than '
1315+
'one dimension.')
13161316
elif (orientation is None or orientation.lower() == 'none' or
13171317
orientation.lower() == 'horizontal'):
13181318
positions.sort()

0 commit comments

Comments
 (0)