PLT: Delegating to plotting backend only plots of Series and DataFrame methods
- [X] xref #26747
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Sounds good.

On Wed, Jul 17, 2019 at 10:45 AM Marc Garcia <notifications@github.com>
wrote:

> *@datapythonista* commented on this pull request.
> ------------------------------
>
> In pandas/plotting/_core.py
> <https://github.com/pandas-dev/pandas/pull/27432#discussion_r304482395>:
>
> > @@ -375,7 +375,7 @@ def boxplot(
>          >>> type(boxplot)
>          <class 'numpy.ndarray'>
>      """
> -    plot_backend = _get_plot_backend()
> +    plot_backend = _get_plot_backend("matplotlib")
>
> I think this function is pandas.plotting.boxplot(df) and not df.boxplot()
> which iirc is boxplot_frame, and in this PR still delegates the call to
> the backend.
>
> Personally I'd deprecate pandas.plotting.boxplot more than anything else.
> Afaik it's the same as df.boxplot() or df.plot(kind='box'), each with a
> different implementation. But if we don't deprecate, my preference would be
> to try to make things as simple as possible, and avoid special cases.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/pandas-dev/pandas/pull/27432?email_source=notifications&email_token=AAKAOIWWMPLROLNDO4SSWNTP745BHA5CNFSM4IERMUL2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB6XUVOA#discussion_r304482395>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAKAOITWMXEKVFIO4XVD5KDP745BHANCNFSM4IERMULQ>
> .
>
