Guest User

Untitled

a guest
Nov 23rd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. f, (ax1, ax2) = plt.subplots(ncols=1, nrows=2, figsize=(16,8))
  2. f.subplots_adjust(hspace=0.35)
  3.  
  4. weekdays_order =['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
  5. 'Saturday', 'Sunday']
  6.  
  7. ax1 = sns.barplot(x='weekday_number', y='Error_absoluto', data=df_1 , ax=ax1)
  8. ax2 = sns.barplot(x='weekday', y='Error_absoluto', data=df_2, ax=ax2)
  9.  
  10. ax2.set_xlabel('Weekday')
  11. ax2.set_ylabel('Error')
  12. ax1.set_xlabel('Weekday')
  13. _ = ax1.set_ylabel('Error')
Add Comment
Please, Sign In to add comment