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

Skip to content

Commit aa0e899

Browse files
committed
Fix convert_to_string method
1 parent fcef8fd commit aa0e899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)