You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to access the boxplot to further modify it?
Currently boxplot() returns the Axes.
I would like to paint the boxes differently along x while having an hue coded with a pattern, and I'm trying to achieve this hacking around... (question here)
Pandas addresses this by having an argument return_type (see here).
The text was updated successfully, but these errors were encountered:
You can pass {artist}props dictionaries to boxplot which are applied after the seaborn attributes. Also, references to the various artists are stored on the Axes object, you just have to know where to look. Then you can work with them directly.
The idea that Axes-level functions in seaborn return the Axes the plot is on is fundamental and will not change.
I understand your point.
It is a matplotlib 'problem' then, to know where to look. I have played with the get_lines() but it is a bit messy. Also thank you for your answer on SO: ax.artists gives me access to the boxes indeed. I am guessing that the lines will give me the whiskers and the caps, but it is not very clear.
Anyway, thank you for the directions!
Meanwhile, I have managed to get the desired plot by using matplotlib only... No seaborn love involved but it got the job done.
Is it possible to access the boxplot to further modify it?
Currently boxplot() returns the Axes.
I would like to paint the boxes differently along
x
while having an hue coded with a pattern, and I'm trying to achieve this hacking around... (question here)Pandas addresses this by having an argument return_type (see here).
The text was updated successfully, but these errors were encountered: