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
In [1]: df = pd.DataFrame(np.random.rand(4, 4))
In [2]: df2 = df.copy()
In [3]: for i in range(len(df)):
...: df.iloc[i, i] = np.nan
...:
In [4]: fig, axes = plt.subplots(figsize=(16, 8), nrows=2, ncols=4)
In [5]: df.plot(kind='pie', subplots=True, ax=axes.ravel()[:4])
In [6]: df2.plot(kind='pie', subplots=True, ax=axes.ravel()[4:])
Right now, when subplots=True, the NaN/zero labels aren't being put in the legend (or they aren't showing up).
In [8]: df[0].plot(kind='pie', figsize=(4,4), legend=True)
Not a huge priority, we'll see if anyone notices and wants to implement a fix. I think it would involve refactoring all our legend and ticklabels code to be subplot aware.
The text was updated successfully, but these errors were encountered:
TomAugspurger
changed the title
BUG/VIS: Pie Plots doesn't include NaNs in legend
BUG/VIS: Pie Plot with subplots doesn't include NaNs in legend
Sep 25, 2014
Followup to #8307
Right now, when
subplots=True
, the NaN/zero labels aren't being put in the legend (or they aren't showing up).Not a huge priority, we'll see if anyone notices and wants to implement a fix. I think it would involve refactoring all our legend and ticklabels code to be subplot aware.
The text was updated successfully, but these errors were encountered: