8000 Fix convert_to_string method · matplotlib/matplotlib@aa0e899 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa0e899

Browse files
committed
Fix convert_to_string method
1 parent fcef8fd commit aa0e899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, seq):
6161

6262

6363
def convert_to_string(value):
64-
return np.array(value, dtype=np.unicode)
64+
return np.asarray(value, dtype=str)[np.newaxis][0]
6565

6666

6767
class UnitData(object):

0 commit comments

Comments
 (0)
0