How to build a sharing scheme with the hue parameter in the seabed

Everything in the header, I would like to have a graph of the following command line:

import numpy as np, pandas as pd
import seaborn as sns; sns.set(style="white", color_codes=True)
tips = sns.load_dataset("tips")
g = sns.jointplot(x="total_bill", y="tip", data=tips, hue= 'sex')

if the hue parameter was implemented in a union.

How can i do this?

Perhaps the imposition of two sovlokalnyh schedules?

Thank!

+4
source share
2 answers

A simple alternative is to use seaborn.lmplot- even if the x and y histograms are not drawn.

sns.lmplot(x='total_bill', y='tip', hue='sex', data=tips, fit_reg=False)

enter image description here

+6
source

You cannot unfortunately

and this will not be implemented in the near future, since it is necessary to maintain ease of sharing.

See here: https://github.com/mwaskom/seaborn/issues/365

( ): seaborn.jointplot

0

Source: https://habr.com/ru/post/1659805/


All Articles