You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plt.plot() does not support structured arrays as data= kwarg #8818
In [1]: t = np.array([(1, 2), (4, 5)], [("ABCD", float), ("EFGH", float)])
In [2]: plt.scatter("ABCD", "EFGH", data=t) # works
In [3]: plt.plot("ABCD", "EFGH", data=t) # fails with
ValueError: Unrecognized character E in format string
Passing a dict instead works -- there is no ambiguity as to whether "EFGH" should be interpreted as a color spec or a data key.
Other functions (e.g. plt.scatter) have no problem accepting structured arrays as the data= kwarg.
Activity
bugfix for matplotlib#8818
bugfix for matplotlib#8818
bugfix for matplotlib#8818
updated bugfix for matplotlib#8818
updated bugfix for matplotlib#8818
updated bugfix for matplotlib#8818
updated bugfix for matplotlib#8818
updated fix for matplotlib#8818
updated fix for matplotlib#8818
updated fix for matplotlib#8818
updated fix for matplotlib#8818
njaremko commentedon Mar 28, 2018
This should probably be closed