Skip to content

Instantly share code, notes, and snippets.

@techwithshadab
Created November 3, 2021 21:14
Show Gist options
  • Save techwithshadab/749ce7bb440b1146e2e0cb39a0477ea4 to your computer and use it in GitHub Desktop.
Save techwithshadab/749ce7bb440b1146e2e0cb39a0477ea4 to your computer and use it in GitHub Desktop.
f, ax = plt.subplots(figsize=(20, 8))
optimized_value = sns.barplot(state, probabilities)
for item in optimized_value.get_xticklabels():
item.set_rotation(45)
plt.title("Probabilites of Each Possible Combination of Assets", fontsize=25) # Probability of Max Return at given risk level
plt.xlabel('Possible Combinations of Assets',fontsize =20)
plt.ylabel('Probability',fontsize = 20)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment