Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2fe337c

Browse filesBrowse files
authored
Merge pull request #13240 from jklymak/fix-spelling-error-convertible
FIX: spelling error of local variable in category
2 parents df10f3e + 0984d54 commit 2fe337c
Copy full SHA for 2fe337c

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎lib/matplotlib/category.py

Copy file name to clipboardExpand all lines: lib/matplotlib/category.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,18 @@ def update(self, data):
210210
"""
211211
data = np.atleast_1d(np.array(data, dtype=object))
212212

213-
# check if convertable to number:
214-
convertable = True
213+
# check if convertible to number:
214+
convertible = True
215215
for val in OrderedDict.fromkeys(data):
216216
# OrderedDict just iterates over unique values in data.
217217
if not isinstance(val, (str, bytes)):
218218
raise TypeError("{val!r} is not a string".format(val=val))
219-
if convertable:
220-
# this will only be called so long as convertable is True.
221-
convertable = self._str_is_convertible(val)
219+
if convertible:
220+
# this will only be called so long as convertible is True.
221+
convertible = self._str_is_convertible(val)
222222
if val not in self._mapping:
223223
self._mapping[val] = next(self._counter)
224-
if convertable:
224+
if convertible:
225225
_log.info('Using categorical units to plot a list of strings '
226226
'that are all parsable as floats or dates. If these '
227227
'strings should be plotted as numbers, cast to the '

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.