Skip to content

ENH: Allow plotting backend to be an option #28622

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

Merged
merged 12 commits into from
Nov 5, 2019

Conversation

jsignell
Copy link
Contributor

@jsignell jsignell commented Sep 25, 2019

@pep8speaks
Copy link

pep8speaks commented Sep 25, 2019

Hello @jsignell! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-11-05 15:39:27 UTC

@jsignell
Copy link
Contributor Author

Hmm I haven't added any docs. I suppose there should at least be a mention in the docstring.

Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add backend to the docstring (and possibly the signature) for all of the plotting methods? That'll make this a bit more discoverable.

@jorisvandenbossche jorisvandenbossche changed the title Allow backend to be an option ENH: Allow plotting backend to be an option Sep 26, 2019
@jsignell
Copy link
Contributor Author

I think this is ready.

@jbrockmendel
Copy link
Member

@jsignell can you rebase

... return_type=None)
>>> type(boxplot)
<class 'numpy.ndarray'>
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like not to duplicate this, but I couldn't figure out a good way to inject the backend argument doc string.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to clarify: this is because boxplot doesn't accept a backend argument right?

I may have a fix, will push it up if that works.

@TomAugspurger TomAugspurger added this to the 1.0 milestone Nov 5, 2019
@TomAugspurger TomAugspurger added the Visualization plotting label Nov 5, 2019

If ``return_type`` is `None`, a NumPy array
of axes with the same shape as ``layout`` is returned.
%(backend)s\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only really new thing. Otherwise it's just a move from being written in boxplot to using Appender.

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @jsignell

@TomAugspurger TomAugspurger merged commit d31e94b into pandas-dev:master Nov 5, 2019
@TomAugspurger
Copy link
Contributor

Thanks @jsignell!

Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
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.

Allow users to pass backend option to .plot()
5 participants