8000 FIX: spelling error of local variable in category by jklymak · Pull Request #13240 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX: spelling error of local variable in category #13240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/matplotlib/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,18 @@ def update(self, data):
"""
data = np.atleast_1d(np.array(data, dtype=object))

# check if convertable to number:
convertable = True
# check if convertible to number:
convertible = True
for val in OrderedDict.fromkeys(data):
# OrderedDict just iterates over unique values in data.
if not isinstance(val, (str, bytes)):
raise TypeError("{val!r} is not a string".format(val=val))
if convertable:
# this will only be called so long as convertable is True.
convertable = self._str_is_convertible(val)
if convertible:
# this will only be called so long as convertible is True.
convertible = self._str_is_convertible(val)
if val not in self._mapping:
self._mapping[val] = next(self._counter)
if convertable:
if convertible:
_log.info('Using categorical units to plot a list of strings '
'that are all parsable as floats or dates. If these '
'strings should be plotted as numbers, cast to the '
Expand Down
0