Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import seaborn as sns
  2. import pandas as pd
  3. import matplotlib.pylab as plt
  4. from matplotlib.pyplot import show
  5.  
  6. df = pd.read_excel('1.xlsx', index_col=0)
  7. sns.set(font="Verdana")
  8.  
  9. df_plot = sns.barplot(
  10.     data = df,
  11.     x = df['Features'],
  12.     y = df['Pearson correlations'],
  13.     color = "b",
  14.     edgecolor = 'w'
  15.     )
  16.  
  17. # rotate labels 45 degrees
  18. locs, labels = plt.xticks()
  19. plt.setp(labels, rotation=45)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement