Skip to content

Conversation

@sinhrks
Copy link
Member

@sinhrks sinhrks commented Jan 17, 2015

Related to #8877 and 80a730c

Because legend=True is default, DataFrame.plot(kind='box', subplots=True) shows unnecessary warnings.

# OK, no legend / no warnings
df.plot(kind='box')
# NG: no legend and warnings
df.plot(kind='box', subplots=True)
# UserWarning: No labelled objects found. Use label='...' kwarg on individual plots.
#   warnings.warn("No labelled objects found. "

@jorisvandenbossche
Copy link
Member

Looking at the travis doc build, the warning is still there.

@jorisvandenbossche jorisvandenbossche added this to the 0.16.0 milestone Jan 17, 2015
@sinhrks
Copy link
Member Author

sinhrks commented Jan 17, 2015

Looks the same warning is raised by hexbin also. Let me fix.

@sinhrks
Copy link
Member Author

sinhrks commented Jan 18, 2015

Looks fixed. Other warnings are unrelated to this change, and being fixed in #8877.

https://travis-ci.org/pydata/pandas/jobs/47391584

@TomAugspurger
Copy link
Contributor

Great. It does look like all the no labelled objects errors have been fixed.

Thanks!

TomAugspurger pushed a commit that referenced this pull request Jan 18, 2015
BUG: Subplotting boxplot shows unnecessary warnings
@TomAugspurger TomAugspurger merged commit fc2ec85 into pandas-dev:master Jan 18, 2015
@sinhrks sinhrks deleted the subplotbox_warn branch January 19, 2015 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants