Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making this work with seaborn plots #116

Open
kevalshah90 opened this issue Aug 1, 2021 · 0 comments
Open

Making this work with seaborn plots #116

kevalshah90 opened this issue Aug 1, 2021 · 0 comments

Comments

@kevalshah90
Copy link

ax = sns.scatterplot(x='col1', y='col2', data = df1)

for line in range(0,df1.shape[0]):
     ax.text(df1.col1[line]+0.4, df1.col2[line], 
                 df1.col3[line], color='black', weight='semibold')
        
# get labels
    
texts = [ax.text(df1['col1'], 
                           df1['col2'], 
                           df1['col3']) for i in range(len(df1))]
adjust_text(texts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant