October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following are the steps to plot four line plots with various options:
sns.set(style='darkgrid')
sns.relplot(x='Period', y='Smoothies', data=snacks_sales.query("Period < 300"), kind='line')plt.title('line plot', size=20, color='g')
day_order = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']sns.relplot(x='Period', y='Smoothies', hue='daywk', hue_order=day_order, data=snacks_sales.query("Period < 300"), kind='line')plt.title('line plot with hue=daywk', size=20, color='g')
Read now
Unlock full access