Note
Click here to download the full example code
12.3.10.5. Linear regressionΒΆ
Out:
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1582: UserWarning:
Trying to register the cmap 'rocket' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1583: UserWarning:
Trying to register the cmap 'rocket_r' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1582: UserWarning:
Trying to register the cmap 'mako' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1583: UserWarning:
Trying to register the cmap 'mako_r' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1582: UserWarning:
Trying to register the cmap 'icefire' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1583: UserWarning:
Trying to register the cmap 'icefire_r' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1582: UserWarning:
Trying to register the cmap 'vlag' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1583: UserWarning:
Trying to register the cmap 'vlag_r' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1582: UserWarning:
Trying to register the cmap 'flare' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1583: UserWarning:
Trying to register the cmap 'flare_r' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1582: UserWarning:
Trying to register the cmap 'crest' which already exists.
C:\itom_vs2017_x64_Qt5.12.6_setup4.0\3rdParty\Python\lib\site-packages\seaborn\cm.py:1583: UserWarning:
Trying to register the cmap 'crest_r' which already exists.
<seaborn.axisgrid.FacetGrid object at 0x00000203B3BA2220>
import seaborn as sns
sns.set_theme()
# Load the penguins dataset
penguins = sns.load_dataset("penguins")
# Plot sepal width as a function of sepal_length across days
g = sns.lmplot(
data=penguins,
x="bill_length_mm", y="bill_depth_mm", hue="species",
height=5
)
# Use more informative axis labels than are provided by default
g.set_axis_labels("Snoot length (mm)", "Snoot depth (mm)")
Total running time of the script: ( 0 minutes 0.834 seconds)