Skip to content

Instantly share code, notes, and snippets.

@fnneves
Created October 11, 2018 00:05
Show Gist options
  • Save fnneves/f92c0a4fbb874e47bffd8a757d1ca686 to your computer and use it in GitHub Desktop.
Save fnneves/f92c0a4fbb874e47bffd8a757d1ca686 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(12,8))
plt.scatter(vol_arr, ret_arr, c=sharpe_arr, cmap='viridis')
plt.colorbar(label='Sharpe Ratio')
plt.xlabel('Volatility')
plt.ylabel('Return')
plt.plot(frontier_x,frontier_y, 'r--', linewidth=3)
plt.savefig('cover.png')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment