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
I encountered an issue of the legend in matplotlib.pyplot.errorbar when I plot a pandas' DataFrame object. A minimum example based on the release note of v1.5 is the following.
I encountered an issue of the legend in matplotlib.pyplot.errorbar when I plot a pandas' DataFrame object. A minimum example based on the release note of v1.5 is the following.
Here is the same as one in the release note, but with a legend.
The output is the following.
The following code makes the issue.
As you can see, the 'var2' key is not overridden by the
label='test'
and there are two lines instead of one in the legend.A quick workaround is to convert the y values to numpy array with
np.array(df["var2"])
when plotting.I'm using Python 2.7.8 installed via homebrew on OS X 10.10.5, matplotlib 1.5.0, and pandas 0.17.0.
The text was updated successfully, but these errors were encountered: