8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77dbccc commit 74d2d33Copy full SHA for 74d2d33
lib/matplotlib/category.py
@@ -61,22 +61,7 @@ def __init__(self, seq):
61
62
63
def convert_to_string(value):
64
- """Helper function for numpy 1.6, can be replaced with
65
- np.array(...,dtype=unicode) for all later versions of numpy"""
66
-
67
- if isinstance(value, six.string_types):
68
- pass
69
- elif np.isfinite(value):
70
- value = np.asarray(value, dtype=str)[np.newaxis][0]
71
- elif np.isnan(value):
72
- value = 'nan'
73
- elif np.isposinf(value):
74
- value = 'inf'
75
- elif np.isneginf(value):
76
- value = '-inf'
77
- else:
78
- raise ValueError("Unconvertable {}".format(value))
79
- return value
+ return np.array(value, dtype=unicode)
80
81
82
class UnitData(object):
0 commit comments