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

Skip to content

Commit 0984d54

Browse files
committed
FIX: spelling error of local variable in category
1 parent df10f3e commit 0984d54

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/category.py

Lines 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)