LoslegenKostenlos loslegen

Complex jointplots

The jointplot is a convenience wrapper around many of the JointGrid functions. However, it is possible to overlay some of the JointGrid plots on top of the standard jointplot. In this example, we can look at the different distributions for riders that are considered casual versus those that are registered.

Diese Übung ist Teil des Kurses

Intermediate Data Visualization with Seaborn

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Create a jointplot of temp vs. casual riders
# Include a kdeplot over the scatter plot
g = sns.___(x="temp",
             y="casual",
             kind='___',
             data=df,
             marginal_kws=dict(bins=10))
g.plot_joint(sns.___)
    
plt.show()
plt.clf()
Code bearbeiten und ausführen