Bug report
Bug summary
Function is_string_like returns True for numpy object arrays
Code for reproduction
import numpy as np
from matplotlib.cbook import is_string_like
print(is_string_like(np.array(map(str, [1,2,3]), dtype=object)))
Actual outcome
Expected outcome
The problem is that the line 707 obj + '' in is_string_like does not generate an exception with such numpy array.
Matplotlib version
Bug report
Bug summary
Function
is_string_likereturns True for numpyobjectarraysCode for reproduction
Actual outcome
Expected outcome
The problem is that the line 707
obj + ''inis_string_likedoes not generate an exception with such numpy array.Matplotlib version