Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- corr_coeff = np.round(np.corrcoef(x, y)[0][1], 2)
- ax.scatter(x, y, s=128, marker='v', color='#003366', alpha=0.55, label=f'Correlation: {corr_coeff}')
- leg = ax.legend(handlelength=0, handletextpad=0, fancybox=True, prop={'size': 14}, loc=1)
- for item in leg.legendHandles:
- item.set_visible(False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement