8000 Remove convert_to_string method · matplotlib/matplotlib@13c965d · GitHub
[go: up one dir, main page]

Skip to content

Commit 13c965d

Browse files
committed
Remove convert_to_string method
1 parent aa0e899 commit 13c965d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/matplotlib/category.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ def __init__(self, seq):
6060
self.offset_string = ''
6161

6262

63-
def convert_to_string(value):
64-
return np.asarray(value, dtype=str)[np.newaxis][0]
65-
66-
6763
class UnitData(object):
6864
# debatable makes sense to special code missing values
6965
spdict = {'nan': -1.0, 'inf': -2.0, '-inf': -3.0}
@@ -90,7 +86,7 @@ def _set_seq_locs(self, data, value):
9086
# np.unique makes dateframes work
9187
new_s = [d for d in np.unique(strdata) if d not in self.seq]
9288
for ns in new_s:
93-
self.seq.append(convert_to_string(ns))
89+
self.seq.append(ns)
9490
if ns in UnitData.spdict.keys():
9591
self.locs.append(UnitData.spdict[ns])
9692
else:

0 commit comments

Comments
 (0)
0