Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Bug report
Bug summary
Functionis_string_like
returns True for numpyobject
arrays
Code for reproduction
importnumpyasnpfrommatplotlib.cbookimportis_string_likeprint(is_string_like(np.array(map(str, [1,2,3]),dtype=object)))
Actual outcome
True
Expected outcome
False
The problem is that the line 707obj + ''
inis_string_like
does not generate an exception with such numpy array.
Matplotlib version
- Matplotlib version: 1.5.3
- OS: Ubuntu 14.04
- Python and Matplotlib Installed with Anaconda