-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
API: Making plot methods more uniform in their options #413
Comments
For reference, interesting dicussion on pystatsmodel mailing list on what plotting functions should return. |
Idea: remove groupby functionality in the plotting methods and define plotting methods on groupby object instead of relaying to the underlying group pandas opbjects. |
That is certainly one option. I would support having this in addition to the current functions which take a |
Interesting, is this grammar of graphics based on something already existing? There is indeed no need to remove Did some mental scribbling a few days ago. Things i would like to have require a very big argument list to the plotting methods, not practical. So next was the idea of a graphical viewer class, with plenty of methods to do stuff. Maybe "Wouter" needs to go into a cave for a while to implement some of the ideas ... rather unrealistic |
FWIW, as a new user just figuring out how to use pandas I made the following attempts to achieve the "faceted plot" effect:
Basically, +1 to the ideas of making the signatures to the various plotting methods more uniform and adding the arguments you suggested, and also +1 to lodagro's idea of adding plot methods to groupby objects. And, a grammar of graphics implementation would be amazing! |
@drewfrank would you please explain about your point 3? As a fresh pandas newbie, I went through your steps 1. & 2., and failed ever since... |
I am having a lot of problems styling dataframe.groupby boxplots. I can access the axes just fine, but since that call to the boxplot function returns a dict, how do you access the dict for styling purposes? For example bp['boxes'] or bp['whiskers'] don't work as expected. I get the following error:
It also seems that none of the ways of accessing the plot I have tried let me use setp() like the standard matplotlib boxplot does. I am on the newest stable pandas release. |
It would be nice I you could modify the boxplot method to support sharey and sharex keywords as in hist. |
Closing as outdated |
from @lodagro:
Been thinking a bit on uniformering signatures for plot, hist, boxplot and what they do/return.
For reference, below an overview what pandas and matplotlib.pyplot have.
some things that come to mind
Maybe if i stare at it a bit longer i may have some more ideas, but this is getting long already. What do you think?
for reference
Series:
DataFrame:
matplotlib.pyplot
The text was updated successfully, but these errors were encountered: