Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: some errors in the vis docs regarding multiple axes #8234

Closed
jorisvandenbossche opened this issue Sep 10, 2014 · 6 comments · Fixed by #8877
Closed

DOC: some errors in the vis docs regarding multiple axes #8234

jorisvandenbossche opened this issue Sep 10, 2014 · 6 comments · Fixed by #8877
Labels
Milestone

Comments

@jorisvandenbossche
Copy link
Member

Opening an issue to not forget this, see #7736 (comment)

@sinhrks

@jorisvandenbossche jorisvandenbossche added this to the 0.15.0 milestone Sep 10, 2014
@jreback jreback added the Visualization plotting label Oct 2, 2014
@jreback
Copy link
Contributor

jreback commented Oct 5, 2014

@jorisvandenbossche will leave this in 0.15.0 but not a blocker for rc

@jorisvandenbossche
Copy link
Member Author

indeed, not a blocker for release candidate, but needs to be fixed for final.
@sinhrks do you have time for this? (or @TomAugspurger)

@jorisvandenbossche
Copy link
Member Author

Two remaining warnings:

In [2]: from pandas import Series, DataFrame, date_range
In [3]: ts = Series(randn(1000), index=date_range('1/1/2000', periods=1000))
In [4]: df = DataFrame(randn(1000, 4), index=ts.index, columns=list('ABCD'))
In [5]: df = df.cumsum()

In [6]: df.plot(subplots=True, layout=(3, 2), figsize=(6, 6), sharex=False)
/home/joris/miniconda/envs/docs/lib/python2.7/site-packages/matplotlib/axes/_axes.py:475: UserWarning: No labelled objects found. Use label='...' kwarg on individual plots.
  warnings.warn("No labelled objects found. "
Out[6]: 
array([[<matplotlib.axes._subplots.AxesSubplot object at 0xafa4d18c>,
        <matplotlib.axes._subplots.AxesSubplot object at 0xaf9deb0c>],
       [<matplotlib.axes._subplots.AxesSubplot object at 0xaf8563cc>,
        <matplotlib.axes._subplots.AxesSubplot object at 0xaf885e6c>],
       [<matplotlib.axes._subplots.AxesSubplot object at 0xaf84588c>,
        <matplotlib.axes._subplots.AxesSubplot object at 0xaf7f590c>]], dtype=object)

and

In [8]: fig, axes = plt.subplots(4, 4, figsize=(6, 6));

In [9]: plt.subplots_adjust(wspace=0.5, hspace=0.5);

In [10]: target1 = [axes[0][0], axes[1][1], axes[2][2], axes[3][3]]

In [11]: target2 = [axes[3][0], axes[2][1], axes[1][2], axes[0][3]]

In [12]: df.plot(subplots=True, ax=target1, legend=False);
/home/joris/scipy/pandas/pandas/tools/plotting.py:3177: UserWarning: When passing multiple axes, sharex and sharey are ignored.These settings must be specified when creating axes
  "These settings must be specified when creating axes", UserWarning)

@jreback
Copy link
Contributor

jreback commented Oct 20, 2014

@jorisvandenbossche still 0.15.0 docs for this?

@jorisvandenbossche jorisvandenbossche modified the milestones: 0.15.1, 0.15.0 Oct 20, 2014
@jorisvandenbossche
Copy link
Member Author

you don't visually see the warning (it is not printed in the html, only in the console), so for 0.15.1 is also OK. But it is still an issue.

@jreback
Copy link
Contributor

jreback commented Dec 11, 2014

@jorisvandenbossche ?

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 a pull request may close this issue.

3 participants