Skip to content

Commit c0c6bc9

Browse files
committed
Fix the phrasing of some sentences.
1 parent c49a4c8 commit c0c6bc9

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
@@ -1163,8 +1163,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
11631163
For *linelengths*, *linewidths*, *colors*, and *linestyles*, if only
11641164
a single value is given, that value is applied to all lines. If an
11651165
array-like is given, it must have the same length as *positions*, and
1166-
each row of the array will be applied to the corresponding row or
1167-
column of events.
1166+
each value will be applied to the corresponding row of the array.
11681167
11691168
Example
11701169
-------

lib/matplotlib/collections.py

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

0 commit comments

Comments
 (0)