SHARE
TWEET

Untitled

a guest Sep 21st, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. corr_coeff = np.round(np.corrcoef(x, y)[0][1], 2)
  2. ax.scatter(x, y, s=128, marker='v', color='#003366', alpha=0.55, label=f'Correlation: {corr_coeff}')
  3.  
  4. leg = ax.legend(handlelength=0, handletextpad=0, fancybox=True, prop={'size': 14}, loc=1)
  5. for item in leg.legendHandles:
  6.     item.set_visible(False)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top