Advertisement
elena1234

many plots together from different df in Python

May 3rd, 2023 (edited)
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | Source Code | 0 0
  1. fig = plt.figure(figsize=(100,80))
  2. sns.set(font_scale=12.5)
  3. legend = ["2019", "2020", "2021"]
  4. colors = ['yellow','blue', 'red']
  5. i = 0
  6. for frame in [month_total_Amount_2019, month_total_Amount_2020, month_total_Amount_2021]:
  7.     plt.bar(frame['TransactionDate'], frame['SapExtendedValue'], color = colors[i], alpha = 0.4 )
  8.     i += 1
  9.        
  10. plt.xticks(rotation = 90)
  11. plt.legend(legend)
  12. plt.title('Total Sales Application level 2 Category in 2019, 2020 and 2021')
  13. plt.xlabel('Transaction Month')
  14. plt.ylabel('Total Sales')
  15. plt.show()
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement